From 4a00ba647d56b542d92a68068621b6813f28a347 Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Wed, 28 Oct 2015 14:10:03 +0100 Subject: [PATCH] Fix crash bug when external log file can't be created --- .../main/java/at/bitfire/davdroid/syncadapter/SyncManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/at/bitfire/davdroid/syncadapter/SyncManager.java b/app/src/main/java/at/bitfire/davdroid/syncadapter/SyncManager.java index 0349ad1a..340f9aaf 100644 --- a/app/src/main/java/at/bitfire/davdroid/syncadapter/SyncManager.java +++ b/app/src/main/java/at/bitfire/davdroid/syncadapter/SyncManager.java @@ -113,7 +113,7 @@ abstract public class SyncManager { if (settings.logToExternalFile()) log = new ExternalFileLogger(context, "davdroid-SyncManager-" + account.name + "-" + authority + ".txt", settings.logVerbose()); } catch(IOException e) { - log.error("Couldn't log to external file", e); + Constants.log.error("Couldn't log to external file", e); } if (log == null) log = Constants.log;