mirror of https://github.com/laurent22/joplin.git
All: Allow apps to work with read-only profile
parent
008e30bdb7
commit
0370c7b627
|
@ -124,7 +124,11 @@ class Logger {
|
|||
consoleObj[fn](line + this.objectsToString(...object));
|
||||
} else if (target.type == 'file') {
|
||||
let serializedObject = this.objectsToString(...object);
|
||||
Logger.fsDriver().appendFileSync(target.path, `${line + serializedObject}\n`);
|
||||
try {
|
||||
Logger.fsDriver().appendFileSync(target.path, `${line + serializedObject}\n`);
|
||||
} catch (error) {
|
||||
console.error('Cannot write to log file:', error);
|
||||
}
|
||||
} else if (target.type == 'database') {
|
||||
let msg = this.objectsToString(...object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue