mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 20:04:59 +08:00
Remove NSLog - use ELECTRON_ENABLE_LOGGING instead (#512)
This commit is contained in:
parent
94d6ab09a2
commit
8ebe225567
2 changed files with 0 additions and 7 deletions
|
@ -50,7 +50,6 @@
|
||||||
"mousetrap": "^1.5.3",
|
"mousetrap": "^1.5.3",
|
||||||
"node-emoji": "^1.2.1",
|
"node-emoji": "^1.2.1",
|
||||||
"node-uuid": "^1.4",
|
"node-uuid": "^1.4",
|
||||||
"nslog": "^3",
|
|
||||||
"optimist": "0.4.0",
|
"optimist": "0.4.0",
|
||||||
"pathwatcher": "~6.2",
|
"pathwatcher": "~6.2",
|
||||||
"pick-react-known-prop": "0.x.x",
|
"pick-react-known-prop": "0.x.x",
|
||||||
|
|
|
@ -125,12 +125,6 @@ module.exports = ErrorLogger = (function() {
|
||||||
|
|
||||||
ErrorLogger.prototype._extendNativeConsole = function(args) {
|
ErrorLogger.prototype._extendNativeConsole = function(args) {
|
||||||
console.debug = this._consoleDebug.bind(this);
|
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
|
// globally define Error.toJSON. This allows us to pass errors via IPC
|
||||||
|
|
Loading…
Reference in a new issue