diff --git a/src/hlua.c b/src/hlua.c index 390191e05..e7cac6547 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -945,6 +945,9 @@ static inline void hlua_sendlog(struct proxy *px, int level, const char *msg) send_log(px, level, "%s\n", trash.area); if (!(global.mode & MODE_QUIET) || (global.mode & (MODE_VERBOSE | MODE_STARTING))) { + if (level == LOG_DEBUG && !(global.mode & MODE_DEBUG)) + return; + get_localtime(date.tv_sec, &tm); fprintf(stderr, "[%s] %03d/%02d%02d%02d (%d) : %s\n", log_levels[level], tm.tm_yday, tm.tm_hour, tm.tm_min, tm.tm_sec,