Edgewall Software

Ticket #7820 (new defect)

Opened 8 weeks ago

[PATCH] Syslog Logging Not Working on FreeBSD

Reported by: david@… Owned by:
Priority: normal Milestone:
Component: general Version: none
Severity: normal Keywords: syslog freebsd
Cc:

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.

Attachments

syslog-path.patch (0.6 KB) - added by david@… 8 weeks ago.
Patch for 0.10-stable and trunk. Overrides handling of UNIX socket path via logfile parameter.
syslog-removepath.patch (0.5 KB) - added by david@… 8 weeks ago.
It's also possible to just remove the explicit path, and everything Just Works(tm) (at least on Python 2.5.2).

Change History

Changed 8 weeks ago by david@…

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

Changed 8 weeks ago by david@…

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

Add/Change #7820 ([PATCH] Syslog Logging Not Working on FreeBSD)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from (none). Next status will be 'new'
The owner will change from (none) to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.