Changeset 52ceb4b for protocols/skype
- Timestamp:
- 2013-03-06T19:56:19Z (12 years ago)
- Branches:
- master
- Children:
- 83c246e
- Parents:
- 8407e25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/skype/skyped.py
r8407e25 r52ceb4b 254 254 global options 255 255 256 now = strftime("%Y-%m-%d %H:%M:%S")257 258 256 if options.debug: 257 import inspect 258 prefix = strftime("[%Y-%m-%d %H:%M:%S]") + " %s:%d" % inspect.stack()[1][1:3] 259 259 sanitized = msg 260 260 261 261 try: 262 print now+ ": " + msg262 print prefix + ": " + msg 263 263 except Exception, s: 264 264 try: … … 269 269 except Error, s: 270 270 sanitized = "[unable to print debug message]" 271 print now+ "~=" + sanitized271 print prefix + "~=" + sanitized 272 272 273 273 if options.log: 274 274 sock = open(options.log, "a") 275 sock.write( "%s skyped: %s\n" % (now, sanitized))275 sock.write(prefix + ": " + sanitized) 276 276 sock.close() 277 277
Note: See TracChangeset
for help on using the changeset viewer.