diff -r 000000000000 -r 08a2d7d67ae5 gmyth-stream/server/lib.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/server/lib.py Wed Apr 04 17:08:11 2007 +0100 @@ -0,0 +1,9 @@ +import time + +def now(): + return time.strftime("%Y-%m-%d %H:%M:%S"); + +def log(msg): + new_msg = "[%s] %s" % (now(), msg) + print new_msg + return new_msg