From a3e46566bb6815a59333b02be0b338bbd336e43f Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Tue, 1 Apr 2014 10:46:35 -0400 Subject: Make logs include timestamps --- util.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util.coffee') diff --git a/util.coffee b/util.coffee index 169cc35..bd6403d 100644 --- a/util.coffee +++ b/util.coffee @@ -2,7 +2,8 @@ system = require('system') # prints a log message if the LOG environment variable is set if system.env.LOG? - exports.log = log = system.stderr.writeLine + exports.log = log = (message) -> + system.stderr.writeLine "#{new Date().toString()} #{message}" else exports.log = log = -> -- cgit v1.2.3-70-g09d2