mirror of https://github.com/xwiki-labs/cryptpad
fix use before definition
This commit is contained in:
parent
8c757019e2
commit
b3e0f9e886
|
@ -79,6 +79,9 @@ Logger.create = function (config, cb) {
|
|||
config.logLevel = 'info';
|
||||
}
|
||||
|
||||
var date = new Date();
|
||||
var launchTime = ('' + date.getUTCFullYear()).slice(-2) + date.toISOString();
|
||||
|
||||
var ctx = {
|
||||
channelName: launchTime,
|
||||
logFeedback: Boolean(config.logFeedback),
|
||||
|
@ -90,9 +93,6 @@ Logger.create = function (config, cb) {
|
|||
return void cb(Object.freeze(createMethods(ctx)));
|
||||
}
|
||||
|
||||
var date = new Date();
|
||||
var launchTime = ('' + date.getUTCFullYear()).slice(-2) + date.toISOString();
|
||||
|
||||
Store.create({
|
||||
filePath: config.logPath,
|
||||
}, function (store) {
|
||||
|
|
Loading…
Reference in New Issue