[Y-devel] Y logging into wrong log
Chris Amshey ychris at amshey.net
Sun Feb 29 02:07:18 GMT 2004
On Sat, Feb 28, 2004 at 08:15:56PM +0100, red_alert wrote:
> i just realized, that Y is additionaly logging to /var/log/boot.log
>
> besides that, it's correctly logging to /var/log/messages. and i don't
> have a /var/log/syslog.
>
> i'm using Y 0.2 p26 on SDL.
>
> and i'm running fedora core 1.
>
> regards
> red_alert
Let me try this again from the account name actually on the list... :o
This is not really Y's fault or error, I think, since Y is just using
the LOG_LOCAL7 facility in a perfectly correct way; however, Redhat seems to
be using LOCAL7 also (judging by the symptoms described), so here's an
(untested) patchfile, applicable with 'patch -p1 < syslog.patch', which
just changes the logging facility to 'LOCAL5,' which should avoid the
collision while leaving everything else working.
A posting of your syslog.conf would help to figure out if there's any
collision going on with LOCAL5 or any other potential oddities.
--Chris
-------------- next part --------------
--- old/Y/util/log.h 2004-02-28 20:45:00.000000000 -0500
+++ new/Y/util/log.h 2004-02-28 20:44:35.000000000 -0500
@@ -6,7 +6,7 @@
#include <syslog.h>
#if 1
-#define Y_LOG_INIT() do { openlog ("Y", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_LOCAL7); } while (0)
+#define Y_LOG_INIT() do { openlog ("Y", LOG_CONS|LOG_NDELAY|LOG_PID, LOG_LOCAL5); } while (0)
#define Y_SILENT(str, ...)
#define Y_DEBUG(str, ...) do { syslog (LOG_DEBUG, "%s:%d: " str "\n", __FUNCTION__, __LINE__ ,##__VA_ARGS__ ); } while (0)
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved