Improve log levels

* Set log levels to LOGL_NOTICE by default
* Set log message about pooling being disabled to debug

Change-Id: Ieddf20a5eafaa9738d5d1e9a9aae320e48aa2efc
This commit is contained in:
Daniel Willmann 2022-10-10 16:29:52 +02:00
parent 39a9d0ccf3
commit 33dcdad449
2 changed files with 4 additions and 2 deletions

View File

@ -278,7 +278,7 @@ static struct gbproxy_sgsn *gbproxy_select_sgsn(struct gbproxy_config *cfg, cons
return NULL;
}
LOGPSGSN(sgsn, LOGL_INFO, "Pooling disabled, using first available SGSN\n");
LOGPSGSN(sgsn, LOGL_DEBUG, "Pooling disabled, using first available SGSN\n");
} else {
/* Pooling is enabled, try to use the NRI for routing to an SGSN
* See 3GPP TS 23.236 Ch. 5.3.2 */

View File

@ -237,12 +237,14 @@ static struct log_info_cat gprs_categories[] = {
[DGPRS] = {
.name = "DGPRS",
.description = "GPRS Packet Service",
.enabled = 1, .loglevel = LOGL_DEBUG,
.enabled = 1,
.loglevel = LOGL_NOTICE,
},
[DOBJ] = {
.name = "DOBJ",
.description = "GbProxy object allocation/release",
.enabled = 1,
.loglevel = LOGL_NOTICE,
.color = "\033[38;5;121m"
},
};