[MacPorts] #37990: python27 @2.7.3_1 SysLogHandler uses wrong default address for syslog

MacPorts noreply at macports.org
Mon May 20 22:35:14 PDT 2013


#37990: python27 @2.7.3_1 SysLogHandler uses wrong default address for syslog
---------------------------+-------------------
  Reporter:  robertread@…  |      Owner:  jwa@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.3
Resolution:                |   Keywords:
      Port:  python27      |
---------------------------+-------------------

Comment (by robertread@…):

 Yes, it still appears to be an issue in 2.7.5 -  the default address for
 SysLogHandler is still set to a UDP port instead the /var/run/syslog unix
 socket. Here is a reproducer.  WIth this snippet, I only see the message
 in /var/log/system.log if I uncomment the address parameter:


 {{{

 import logging
 import logging.handlers

 logger = logging.getLogger()
 syslog = logging.handlers.SysLogHandler(
 #                address='/var/run/syslog'
           )
 formatter = logging.Formatter('%(name)s[%(process)d]: %(message)s')
 syslog.setFormatter(formatter)
 logger.addHandler(syslog)
 logger.warn("test message!")

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/37990#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list