Suppress server messages in releases

This commit is contained in:
M66B 2018-11-12 18:12:29 +01:00
parent 06239e9c88
commit 3c424c67b2
1 changed files with 2 additions and 1 deletions

View File

@ -691,7 +691,8 @@ public class ServiceSynchronize extends LifecycleService {
try {
wl.acquire();
Log.i(Helper.TAG, account.name + " event: " + e.getMessage());
db.account().setAccountError(account.id, e.getMessage());
if (BuildConfig.DEBUG)
db.account().setAccountError(account.id, e.getMessage());
state.thread.interrupt();
yieldWakelock();
} finally {