[rrd-developers] rrdcached foreground logging
Tobias Oetiker
tobi at oetiker.ch
Sat Jul 10 12:22:29 CEST 2010
Hi Bernard,
Today Bernard Li wrote:
> Hi Frederik, Tobi:
>
> On Sat, Jul 10, 2010 at 1:47 AM, Frederik Kriewitz <frederik at kriewitz.eu> wrote:
>
> > I don't think that will work, too.
> > I fixed this for me by simply adding a
> > fprintf(stderr, "\n"); \
>
> Seems that this is a more correct solution. I did test the patch, but
> I guess I didn't really look carefully at the usage :-)
>
> So please feel free to ignore my patch and check in the correct fix.
I have included the following:
#define RRDD_LOG(severity, ...) \
do { \
- if (stay_foreground) \
+ if (stay_foreground) { \
fprintf(stderr, __VA_ARGS__); \
+ fprintf(stderr, "\n"); } \
syslog ((severity), __VA_ARGS__); \
} while (0)
cheers
tobi
>
> Thanks,
>
> Bernard
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list