Electron-65 (Logging) (#121)

* Electron-65 - Added more logs

* Electron-65 - Removed some logs as per the review

* Electron-65 - Removed unused log variables
This commit is contained in:
Kiran Niranjan
2017-06-02 21:38:55 +05:30
committed by Lynn
parent 6b3037c5d3
commit 85a21ec4e8
11 changed files with 39 additions and 29 deletions

View File

@@ -7,9 +7,12 @@ const nativeImage = electron.nativeImage;
const { isMac } = require('./utils/misc.js');
const windowMgr = require('./windowMgr.js');
const maxCount = 1e8;
const log = require('./log.js');
const logLevels = require('./enums/logLevels.js');
function show(count) {
if (typeof count !== 'number') {
log.send(logLevels.WARN, 'badgeCount: invalid func arg, must be a number: ' + count);
return;
}