From 79125ecf7d54b04cc56818b6dd99813d0a4daf89 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Mon, 2 Nov 2015 15:17:50 +0100 Subject: log: Add new DLSTATS log level This log level is used by the stats subsystem log reporter to report statistics to level INFO. Note that the default level of DLSTATS is NOTICE. Sponsored-by: On-Waves ehf --- src/stats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/stats.c') diff --git a/src/stats.c b/src/stats.c index bdb0fbe6..b398d073 100644 --- a/src/stats.c +++ b/src/stats.c @@ -40,9 +40,6 @@ #include #include -/* TODO: register properly */ -#define DSTATS DLGLOBAL - #define STATS_DEFAULT_INTERVAL 5 /* secs */ #define STATS_DEFAULT_STATSD_BUFLEN 256 @@ -358,7 +355,7 @@ static int osmo_stats_reporter_log_send(struct osmo_stats_reporter *srep, const char *name1, unsigned int index1, const char *name2, int value, const char *unit) { - LOGP(DSTATS, LOGL_INFO, + LOGP(DLSTATS, LOGL_INFO, "stats t=%s p=%s g=%s i=%u n=%s v=%d u=%s\n", type, srep->name_prefix ? srep->name_prefix : "", name1 ? name1 : "", index1, -- cgit v1.2.3