SPTPS error messages should not always be logged, they are mostly
low-level details, and serious errors like failing to connect to a node
due to SPTPS issues will be logged by higher layers anyway, so move it
down to log level 3.
Fixes #298 on GitHub.
char message[1024];
size_t msglen = sizeof(message);
- if(!should_log(DEBUG_ALWAYS)) {
+ if(!should_log(DEBUG_TRAFFIC)) {
return;
}
}
}
- real_logger(DEBUG_ALWAYS, LOG_ERR, message);
+ real_logger(DEBUG_TRAFFIC, LOG_ERR, message);
}
void openlogger(const char *ident, logmode_t mode) {