branch | trunk |
changeset 497 | 08a2d7d67ae5 |
child 511 | 16312d0021cb |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gmyth-stream/server/lib.py Wed Apr 04 17:08:11 2007 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +import time 1.5 + 1.6 +def now(): 1.7 + return time.strftime("%Y-%m-%d %H:%M:%S"); 1.8 + 1.9 +def log(msg): 1.10 + new_msg = "[%s] %s" % (now(), msg) 1.11 + print new_msg 1.12 + return new_msg