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())
|
if (settings.logToExternalFile())
|
||||||
log = new ExternalFileLogger(context, "davdroid-SyncManager-" + account.name + "-" + authority + ".txt", settings.logVerbose());
|
log = new ExternalFileLogger(context, "davdroid-SyncManager-" + account.name + "-" + authority + ".txt", settings.logVerbose());
|
||||||
} catch(IOException e) {
|
} 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)
|
if (log == null)
|
||||||
log = Constants.log;
|
log = Constants.log;
|
||||||
|
Loading…
Reference in New Issue
Block a user