Browse Source

* tune logging in modules

master
Alex 'AdUser' Z 4 years ago
parent
commit
8f6942ce9a
  1. 2
      src/backends/backend.c
  2. 2
      src/filters/filter.c
  3. 2
      src/sources/source.c

2
src/backends/backend.c

@ -69,7 +69,7 @@ log_msg(const cfg_t *cfg, enum loglevel lvl, const char *format, ...) {
va_list args; va_list args;
size_t len; size_t len;
len = snprintf(buf, sizeof(buf), "backend/%s ", MODNAME); len = snprintf(buf, sizeof(buf), "backend/%s: ", MODNAME);
va_start(args, format); va_start(args, format);
vsnprintf(buf + len, sizeof(buf) - len, format, args); vsnprintf(buf + len, sizeof(buf) - len, format, args);
va_end(args); va_end(args);

2
src/filters/filter.c

@ -19,7 +19,7 @@ log_msg(const cfg_t *cfg, enum loglevel lvl, const char *format, ...) {
va_list args; va_list args;
size_t len; size_t len;
len = snprintf(buf, sizeof(buf), "filter/%s ", MODNAME); len = snprintf(buf, sizeof(buf), "filter/%s: ", MODNAME);
va_start(args, format); va_start(args, format);
vsnprintf(buf + len, sizeof(buf) - len, format, args); vsnprintf(buf + len, sizeof(buf) - len, format, args);
va_end(args); va_end(args);

2
src/sources/source.c

@ -21,7 +21,7 @@ log_msg(const cfg_t *cfg, enum loglevel lvl, const char *format, ...) {
va_list args; va_list args;
size_t len; size_t len;
len = snprintf(buf, sizeof(buf), "source/%s ", MODNAME); len = snprintf(buf, sizeof(buf), "source/%s: ", MODNAME);
va_start(args, format); va_start(args, format);
vsnprintf(buf + len, sizeof(buf) - len, format, args); vsnprintf(buf + len, sizeof(buf) - len, format, args);
va_end(args); va_end(args);

Loading…
Cancel
Save