Edgewall Software

Opened 15 years ago

Last modified 3 years ago

#7820 new defect

[PATCH] Syslog Logging Not Working on FreeBSD — at Initial Version

Reported by: david@… Owned by:
Priority: normal Milestone: next-dev-1.7.x
Component: general Version: none
Severity: normal Keywords: patch syslog freebsd bitesized logging
Cc: packet@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

FreeBSD's syslog doesn't listen on /dev/log. It uses /var/run/log. Attached is a patch that allows you to specify the path to the UNIX socket instead of hardcoding it. It basically uses the logfile parameter, if it's None use /dev/log otherwise use it.

This bug affects all versions of Trac since about 0.7 it looks like.

Change History (2)

by david@…, 15 years ago

Attachment: syslog-path.patch added

Patch for 0.10-stable and trunk. Overrides handling of UNIX socket path via logfile parameter.

by david@…, 15 years ago

Attachment: syslog-removepath.patch added

It's also possible to just remove the explicit path, and everything Just Works(tm) (at least on Python 2.5.2).

Note: See TracTickets for help on using tickets.