Do not log on Apple by default as that goes to ASL

This commit is contained in:
Klaas Freitag 2012-05-16 12:42:00 +02:00
parent 2ef3931c32
commit 7ec663a0c6

View file

@ -164,6 +164,10 @@ static LOG4C_INLINE void csync_log(char *catName, int a_priority,
va_end(va);
}
#else
/* On Apple, all stderr & stdout go to Apple System Log (ASL) by default.
* Thats certainly too much at the moment.
*/
#ifndef __APPLE__
va_list va;
va_start(va, a_format);
if (a_priority > 0) {
@ -173,6 +177,7 @@ static LOG4C_INLINE void csync_log(char *catName, int a_priority,
va_end(va);
printf("\n");
#endif
#endif
}
/**