File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
rollbar-java/src/main/java/com/rollbar/notifier/sender/queue Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,18 @@ private DiskQueue(Builder builder) {
4141 this .maxSize = builder .maxSize ;
4242 this .queueFolder = builder .queueFolder ;
4343
44+ /*
45+ A RuntimeException can cause a silent crash, since the error would not be saved and in the next
46+ session there would be no payload to send. So we just log the error.
47+ */
4448 if (!this .queueFolder .exists ()) {
4549 if (!this .queueFolder .mkdirs ()) {
46- throw new RuntimeException ("Could not create folder: " + queueFolder );
50+ LOGGER . error ("Could not create folder: {}" , queueFolder );
4751 }
4852 }
4953
5054 if (!this .queueFolder .canRead () || !this .queueFolder .canWrite ()) {
51- throw new RuntimeException ("Not enough permissions folder: " + queueFolder );
55+ LOGGER . error ("Not enough permissions folder: {}" , queueFolder );
5256 }
5357 }
5458
You can’t perform that action at this time.
0 commit comments