mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-30 18:32:44 +03:00
do not log on stderr on MacOSX because that spams system log
This commit is contained in:
parent
d3d3454aaa
commit
e129d02024
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue