/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos

  • Committer: teddy at bsnet
  • Date: 2011-02-13 10:19:26 UTC
  • mto: This revision was merged to the branch mainline in revision 465.
  • Revision ID: teddy@fukt.bsnet.se-20110213101926-ve878ub7l59ib6jn
* mandos: Bug fix: pass str("/dev/log") to logging.SysLogHandler(),
          not unicode string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
logger = logging.Logger('mandos')
89
89
syslogger = (logging.handlers.SysLogHandler
90
90
             (facility = logging.handlers.SysLogHandler.LOG_DAEMON,
91
 
              address = "/dev/log"))
 
91
              address = str("/dev/log")))
92
92
syslogger.setFormatter(logging.Formatter
93
93
                       ('Mandos [%(process)d]: %(levelname)s:'
94
94
                        ' %(message)s'))