Re: rrdcached foreground logging

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
Hi Bernard,

Today Bernard Li wrote:

> Hi Frederik, Tobi:
>
> On Sat, Jul 10, 2010 at 1:47 AM, Frederik Kriewitz <[email protected]> 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 [email protected] ++41 62 775 9902 / sb: -9900
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.