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

Commit a78ebd4

Browse files
committed
Log to file in debug mode for dev/local builds
1 parent d70b594 commit a78ebd4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/main.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ const _ = require('lodash');
1919
const is = require('electron-is');
2020
require('electron-dl')();
2121
const log = require('electron-log');
22-
log.transports.file.level = 'info';
22+
23+
const pkg = require('../package.json');
24+
25+
if (is.dev() || pkg.irccloud.local_build) {
26+
log.transports.file.level = 'debug';
27+
} else {
28+
log.transports.file.level = 'info';
29+
}
2330

2431
var mainWindow = null;
2532
var menu = null;

0 commit comments

Comments
 (0)