Skip to content

Commit

Permalink
[dist] Commented write to disk errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed May 20, 2012
1 parent 2651a1d commit d32bf84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/proxy.js
Expand Up @@ -53,9 +53,9 @@ process.on('uncaughtException', function (err) {
* Write to a specific file errors, this is useful when your restart script
* respawn the process and delete the logs, becuase an uE
*/
var slog = fs.createWriteStream(path.join(config.opt.logs_dir, 'proxyerror.log'), {'flags': 'a'});
/*var slog = fs.createWriteStream(path.join(config.opt.logs_dir, 'proxyerror.log'), {'flags': 'a'});
slog.write('\n<-- new error -->\n');
slog.end('\n' + err.message + '\n' + err.stack +'\n')
slog.end('\n' + err.message + '\n' + err.stack +'\n')*/
setTimeout(function(){
//let the process write the log
process.kill(0)
Expand Down

0 comments on commit d32bf84

Please sign in to comment.