From 370e2e451f0d9adeae547bc194e0c1de412aca60 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 291cdcaf5..b8965d515 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 56147bb20..204f039dd 100644 --- a/src/csync.c +++ b/src/csync.c @@ -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