diff options
Diffstat (limited to 'src/binlog.c')
-rw-r--r-- | src/binlog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/binlog.c b/src/binlog.c index 325f337..7e88817 100644 --- a/src/binlog.c +++ b/src/binlog.c @@ -24,6 +24,7 @@ #include <syslog.h> #include <stddef.h> #include <stdlib.h> +#include <stdarg.h> #include <ctype.h> #include <time.h> #include "vrt.h" @@ -91,7 +92,17 @@ binlog_debug(const char *fmt, ...) } #define debug(c,l,s) do { if ((c)->debug>=(l)) binlog_debug s; } while(0) + +void +packerror(const char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + vsyslog(LOG_DAEMON|LOG_NOTICE, fmt, ap); + va_end(ap); +} + int module_init(struct vmod_priv *priv, const struct VCL_conf *vclconf) { |