Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit da98c5fe authored by Yash Garg's avatar Yash Garg 💬
Browse files

check priority for logging before reporting to sentry

parent dc10229e
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -56,8 +56,10 @@ public class BlissLauncher extends Application {
            Timber.plant(new Timber.Tree() {
                @Override
                protected void log(int priority, @Nullable String tag, @NonNull String message, @Nullable Throwable t) {
                    Telemetry.INSTANCE.reportMessage(tag + ": " + message);
                    Log.println(priority, tag, message);
                    if (priority == Log.WARN || priority == Log.ERROR) {
                        Telemetry.INSTANCE.reportMessage(tag + ": " + message);
                    }
                }
            });
        } else {