Remove NSLog - use ELECTRON_ENABLE_LOGGING instead (#512)

This commit is contained in:
David Rouyer 2018-01-12 00:52:52 +01:00 committed by Ben Gotow
parent 94d6ab09a2
commit 8ebe225567
2 changed files with 0 additions and 7 deletions

View file

@ -50,7 +50,6 @@
"mousetrap": "^1.5.3",
"node-emoji": "^1.2.1",
"node-uuid": "^1.4",
"nslog": "^3",
"optimist": "0.4.0",
"pathwatcher": "~6.2",
"pick-react-known-prop": "0.x.x",

View file

@ -125,12 +125,6 @@ module.exports = ErrorLogger = (function() {
ErrorLogger.prototype._extendNativeConsole = function(args) {
console.debug = this._consoleDebug.bind(this);
if (process.type === 'browser' && process.platform === 'darwin') {
var nslog = require('nslog');
console.log = nslog;
console.error = nslog;
}
};
// globally define Error.toJSON. This allows us to pass errors via IPC