diff options
-rw-r--r-- | skype/skyped.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index 254ff67f..806dd983 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -139,13 +139,16 @@ def listener(sock, *args): return False def dprint(msg): + from time import strftime global options + now = strftime("%Y-%m-%d %H:%M:%S") + if options.debug: - print msg + print now + ": " + msg if options.log: sock = open(options.log, "a") - sock.write("%s\n" % msg) + sock.write("%s: %s\n" % now, msg) sock.close() class SkypeApi: |