- Timestamp:
- 01/30/08 23:14:45 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/loggers/system.py
r3306 r3309 47 47 "DEBUG").upper(), \ 48 48 syslog.LOG_DEBUG) 49 syslog.syslog(priority, "(PID %s) : %s" \ 50 % (os.getpid(), message.strip().encode(sys.stdout.encoding or "UTF-8", "replace"))) 49 try : 50 message = message.strip().encode(sys.stdout.encoding or "UTF-8", \ 51 "replace") 52 except UnicodeDecodeError : 53 pass 54 syslog.syslog(priority, "(PID %s) : %s" % (os.getpid(), message))