1
0
mirror of https://github.com/etesync/android synced 2024-11-22 07:58:09 +00:00

Fix crash bug when external log file can't be created

This commit is contained in:
Ricki Hirner 2015-10-28 14:10:03 +01:00
parent 8d00814eaf
commit 4a00ba647d
No known key found for this signature in database
GPG Key ID: C4A212CF0B2B4566

View File

@ -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;