mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
do not log on stderr on MacOSX because that spams system log
This commit is contained in:
parent
f802b54f6f
commit
09b82ea7cd
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user