1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Many small changes

This commit is contained in:
Laurent Cozic
2017-07-15 00:12:32 +01:00
parent f840dd505f
commit 1c16e493f6
6 changed files with 259 additions and 134 deletions

View File

@@ -9,10 +9,11 @@ import { FileApiDriverOneDrive } from 'lib/file-api-driver-onedrive.js';
const reg = {};
reg.logger = () => {
if (reg.logger_) return reg.logger_;
reg.logger_ = new Logger();
reg.logger_.addTarget('console');
reg.logger_.setLevel(Logger.LEVEL_DEBUG);
if (!reg.logger_) {
console.warn('Calling logger before it is initialized');
return new Logger();
}
return reg.logger_;
}