Skip to content

Commit 57f94f4

Browse files
committed
Add error reporting in UpdateNetworksTask
1 parent 8580253 commit 57f94f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/net/clementraynaud/skoice/tasks/UpdateNetworksTask.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package net.clementraynaud.skoice.tasks;
2121

22+
import com.bugsnag.Severity;
2223
import net.clementraynaud.skoice.Skoice;
2324
import net.clementraynaud.skoice.storage.config.ConfigField;
2425
import net.clementraynaud.skoice.system.LinkedPlayer;
@@ -135,7 +136,9 @@ private void run() {
135136
.filter(Objects::nonNull)
136137
.count();
137138
ProximityChannels.clean(possibleUsers);
138-
139+
} catch (Throwable throwable) {
140+
Skoice.analyticManager().getBugsnag().notify(throwable, Severity.ERROR);
141+
throw throwable;
139142
} finally {
140143
this.lock.unlock();
141144
}

0 commit comments

Comments
 (0)