Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Maigo Erit committed Feb 19, 2017
1 parent 255abd1 commit cf40bc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions app/background.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

var app = require('electron').app;

var compareVersion = require('compare-versions');
var LogManager = require("./log-manager.js")
var logger = LogManager.getLogger();
var LogManager = require("./log-manager.js");
var logger = LogManager.getLogger('BackgroundService');

var _ = require('lodash');
var $q = require('q');
Expand All @@ -26,7 +25,7 @@ const AppItemCrud = require('./AppItemCrud');
const SettingsCrud = require('./SettingsCrud');
const TrackItem = require('./db').TrackItem;

const UserMessages = require('./userMessages');
const UserMessages = require('./user-messages');

var BackgroundService = {};

Expand Down
7 changes: 3 additions & 4 deletions app/log-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

}


/*
Initiates LogManager with received settings
*/
Expand Down Expand Up @@ -38,13 +37,13 @@
logger.info('Saving logs in directory:' + settings.userDir);

}
}
};

/*
Returns a new instance of LogManager
*/
LogManager.getLogger = function getInstance() {
return logger;
LogManager.getLogger = function getInstance(name) {
return logger.child({logger_name: name});
};

module.exports = LogManager;
Expand Down
File renamed without changes.

0 comments on commit cf40bc1

Please sign in to comment.