diff --git a/include/proto/log.h b/include/proto/log.h index 577e570ee..e12743165 100644 --- a/include/proto/log.h +++ b/include/proto/log.h @@ -110,6 +110,12 @@ void ha_alert(const char *fmt, ...) void ha_warning(const char *fmt, ...) __attribute__ ((format(printf, 1, 2))); +/* + * Displays the message on stderr with the date and pid. + */ +void ha_notice(const char *fmt, ...) + __attribute__ ((format(printf, 1, 2))); + /* * Displays the message on only if quiet mode is not set. */ diff --git a/src/log.c b/src/log.c index 87019b08a..3db3c0d9e 100644 --- a/src/log.c +++ b/src/log.c @@ -921,6 +921,20 @@ void ha_warning(const char *fmt, ...) } } +/* + * Displays the message on stderr with the date and pid. + */ +void ha_notice(const char *fmt, ...) +{ + va_list argp; + + if (!(global.mode & MODE_QUIET) || (global.mode & MODE_VERBOSE)) { + va_start(argp, fmt); + print_message("NOTICE", fmt, argp); + va_end(argp); + } +} + /* * Displays the message on only if quiet mode is not set. */