mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Merge remote-tracking branch 'nfarina/master'
This commit is contained in:
@@ -65,6 +65,10 @@ Logger.prototype.log = function(level, msg) {
|
||||
if (this.prefix)
|
||||
msg = chalk.cyan("[" + this.prefix + "]") + " " + msg;
|
||||
|
||||
// prepend timestamp
|
||||
var date = new Date();
|
||||
msg = chalk.black("[" + date.toLocaleString() + "]") + " " + msg;
|
||||
|
||||
func(msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user