Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Log to file in debug mode for dev/local builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jwheare committed Feb 27, 2020
1 parent d70b594 commit a78ebd4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/main.js
Expand Up @@ -19,7 +19,14 @@ const _ = require('lodash');
const is = require('electron-is');
require('electron-dl')();
const log = require('electron-log');
log.transports.file.level = 'info';

const pkg = require('../package.json');

if (is.dev() || pkg.irccloud.local_build) {
log.transports.file.level = 'debug';
} else {
log.transports.file.level = 'info';
}

var mainWindow = null;
var menu = null;
Expand Down

0 comments on commit a78ebd4

Please sign in to comment.