aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-01 18:54:10 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-01 18:54:10 +0200
commit288d0c04c8aa51ca9cdeb8a6922fdc2b96712b07 (patch)
tree72ad9acdfeaf10ef49b0fe7c329b14cbda670cb9 /src/common/logging.c
parentf788d79411ab8e2364f884988b0fbcb8f4bd4294 (diff)
logging sanitization (use proper log levels, etc.)
Diffstat (limited to 'src/common/logging.c')
-rw-r--r--src/common/logging.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/common/logging.c b/src/common/logging.c
index 608b6267..9116ec7b 100644
--- a/src/common/logging.c
+++ b/src/common/logging.c
@@ -35,7 +35,7 @@ static struct log_info_cat bts_log_info_cat[] = {
.name = "DRSL",
.description = "A-bis Radio Siganlling Link (RSL)",
.color = "\033[1;35m",
- .enabled = 1, .loglevel = LOGL_NOTICE,
+ .enabled = 1, .loglevel = LOGL_INFO,
},
[DOML] = {
.name = "DOML",
@@ -69,7 +69,7 @@ static struct log_info_cat bts_log_info_cat[] = {
[DL1C] = {
.name = "DL1C",
.description = "Layer 1",
- .loglevel = LOGL_DEBUG,
+ .loglevel = LOGL_INFO,
.enabled = 1,
},
[DL1P] = {
@@ -107,16 +107,12 @@ const struct log_info bts_log_info = {
.num_cat = ARRAY_SIZE(bts_log_info_cat),
};
-#define DEFAULT_MASK "DL1C:DOML:DRSL:DPAG:DMEAS"
-
int bts_log_init(const char *category_mask)
{
- if (!category_mask)
- category_mask = DEFAULT_MASK;
-
osmo_init_logging(&bts_log_info);
- log_parse_category_mask(osmo_stderr_target, category_mask);
+ if (category_mask)
+ log_parse_category_mask(osmo_stderr_target, category_mask);
return 0;
}