diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-22 15:51:22 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-22 17:05:42 +0100 |
commit | 6a8b9c70fceba57f624c9c23c97cbb27389e4584 (patch) | |
tree | 54c6fbf7659318e6dcfbab978a3ea7c85d56421c /src/utils | |
parent | 34fd0c69a3beb97fd8315488fa384e5b7b090bca (diff) |
dissolve libcommon: drop debug.c
Apply more concise logging categories in each main scope. The bulk goes to
msc_main.c, obviously, while tests and utils get a slimmed down bunch of
logging categories.
Change-Id: I969a0662ba273f3721b6820d02151b7a5b8014b8
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/smpp_mirror.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/smpp_mirror.c b/src/utils/smpp_mirror.c index 248396a13..fa509df7f 100644 --- a/src/utils/smpp_mirror.c +++ b/src/utils/smpp_mirror.c @@ -324,6 +324,18 @@ static int smpp_esme_init(struct esme *esme, const char *host, uint16_t port) return bind_transceiver(esme); } +static const struct log_info_cat smpp_mirror_default_categories[] = { + [DSMPP] = { + .name = "DSMPP", + .description = "SMPP interface for external SMS apps", + .enabled = 1, .loglevel = LOGL_DEBUG, + }, +}; + +const struct log_info log_info = { + .cat = smpp_mirror_default_categories, + .num_cat = ARRAY_SIZE(smpp_mirror_default_categories), +}; int main(int argc, char **argv) { |