Log ENOSPC (full disk) errors only during debug
parent
3f66b95f14
commit
4519f33eb5
|
@ -358,6 +358,10 @@ int ntfs_log_handler_syslog(const char *function __attribute__((unused)),
|
|||
char log[LOG_LINE_LEN];
|
||||
int ret, olderr = errno;
|
||||
|
||||
#ifndef DEBUG
|
||||
if ((level & NTFS_LOG_LEVEL_PERROR) && errno == ENOSPC)
|
||||
return 1;
|
||||
#endif
|
||||
ret = vsnprintf(log, LOG_LINE_LEN, format, args);
|
||||
if (ret < 0) {
|
||||
vsyslog(LOG_NOTICE, format, args);
|
||||
|
|
Loading…
Reference in New Issue