Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug on logger.js

  • Loading branch information...
commit dc465124158f00714b66c10496a309d56d9f1ac8 1 parent a86d9fc
maneulyori authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/logger.js
View
2  modules/logger.js
@@ -34,7 +34,7 @@ function openLogStream(channel)
var date = new Date();
var timestamp = date.getFullYear().zeroPad(1000) + '-' + (date.getMonth()+1).zeroPad(10) + '-' + date.getDate().zeroPad(10);
- fs.createWriteStream("logs/" + channel + "-" + timestamp + ".log", { flags: "a", encoding: "UTF-8", mode: 0666});
+ channelLogStream[channel] = fs.createWriteStream("logs/" + channel + "-" + timestamp + ".log", { flags: "a", encoding: "UTF-8", mode: 0666});
channelLogStream[channel].write("Start logging at " + date + "\n");
}
Please sign in to comment.
Something went wrong with that request. Please try again.