do not log on stderr on MacOSX because that spams system log

This commit is contained in:
Klaas Freitag 2012-06-18 13:02:06 +02:00
parent d3d3454aaa
commit e129d02024
2 changed files with 4 additions and 1 deletions

View file

@ -49,7 +49,7 @@
#include "csync_log.h"
#ifdef NDEBUG
#define DEBUG_WEBDAV(x)
#define DEBUG_WEBDAV(...)
#else
#define DEBUG_WEBDAV(...) CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, __VA_ARGS__)
#endif

View file

@ -966,7 +966,10 @@ void csync_log_cb( char *catName, int a_priority,
if(log_cb) {
(log_cb)(buf);
} else {
#ifndef __APPLE__
/* skip this output on apple to not spam the system log. */
fprintf(stderr, "%s\n", buf);
#endif
}
}
#endif