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 e0eda77c6d
commit 370e2e451f
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

@ -965,7 +965,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