fix use before definition

This commit is contained in:
ansuz 2019-04-09 11:57:33 +02:00
parent 8c757019e2
commit b3e0f9e886
1 changed files with 3 additions and 3 deletions

View File

@ -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) {