mirror of
https://github.com/etesync/android
synced 2024-11-26 01:48:34 +00:00
Fix crash bug when external log file can't be created
This commit is contained in:
parent
8d00814eaf
commit
4a00ba647d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user