gmyth-stream/server/lib.py
author rosfran
Tue Apr 03 19:39:23 2007 +0100 (2007-04-03)
branchtrunk
changeset 486 56b98fd15019
child 511 16312d0021cb
permissions -rw-r--r--
[svn r491] Solve bug with the --enable-debug on configure.ac; reversed changes in the GMythBackendInfo object; procedure to close the Recorder in not mandatory.
renatofilho@484
     1
import time
renatofilho@484
     2
renatofilho@484
     3
def now():
renatofilho@484
     4
    return time.strftime("%Y-%m-%d %H:%M:%S");
renatofilho@484
     5
renatofilho@484
     6
def log(msg):
renatofilho@484
     7
    new_msg = "[%s] %s" % (now(), msg)
renatofilho@484
     8
    print new_msg
renatofilho@484
     9
    return new_msg