mirror of
https://github.com/etesync/android
synced 2024-12-23 15:18:14 +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