From eb1bed118feed93aa8fec0395d67048334a2dda6 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 20 Mar 2014 21:27:27 +0800 Subject: [PATCH] No need to parse args before passing to nslog. --- src/browser/main.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/browser/main.coffee b/src/browser/main.coffee index cd3483dd0..5cff80f4f 100644 --- a/src/browser/main.coffee +++ b/src/browser/main.coffee @@ -9,12 +9,7 @@ optimist = require 'optimist' nslog = require 'nslog' dialog = require 'dialog' -console.log = (args...) -> - # TODO: Make NSLog work as expected - output = args.map((arg) -> JSON.stringify(arg)).join(" ") - nslog(output) - if process.platform isnt 'darwin' - fs.writeFileSync('debug.log', output, flag: 'a') +console.log = nslog process.on 'uncaughtException', (error={}) -> nslog(error.message) if error.message?