summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/verror_msg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index ee95be3..87efb56 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -11,6 +11,7 @@
# include <syslog.h>
#endif
+smallint syslog_level = LOG_ERR;
smallint logmode = LOGMODE_STDIO;
const char *msg_eol = "\n";
@@ -70,7 +71,7 @@ void FAST_FUNC bb_verror_msg(const char *s, va_list p, const char* strerr)
}
#if ENABLE_FEATURE_SYSLOG
if (logmode & LOGMODE_SYSLOG) {
- syslog(LOG_ERR, "%s", msg + applet_len);
+ syslog(syslog_level, "%s", msg + applet_len);
}
#endif
free(msg);