mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
do not log on stderr on MacOSX because that spams system log
This commit is contained in:
parent
e0eda77c6d
commit
370e2e451f
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue