From 09b82ea7cdabb03a0c40628b44b4a052bad54685 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 18 Jun 2012 13:02:06 +0200 Subject: [PATCH] do not log on stderr on MacOSX because that spams system log --- modules/csync_owncloud.c | 2 +- src/csync.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/csync_owncloud.c b/modules/csync_owncloud.c index 291cdcaf5b..b8965d5155 100644 --- a/modules/csync_owncloud.c +++ b/modules/csync_owncloud.c @@ -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 diff --git a/src/csync.c b/src/csync.c index cc13eb9f81..d6b4f84068 100644 --- a/src/csync.c +++ b/src/csync.c @@ -964,7 +964,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