projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix logging configuration
[trust_router.git]
/
common
/
tr_config.c
diff --git
a/common/tr_config.c
b/common/tr_config.c
index
4cf5d7f
..
51999c4
100644
(file)
--- a/
common/tr_config.c
+++ b/
common/tr_config.c
@@
-121,7
+121,7
@@
static TR_CFG_RC tr_cfg_parse_internal (TR_CFG *trc, json_t *jcfg) {
}
if (NULL != (jlog = json_object_get(jcfg, "logging"))) {
}
if (NULL != (jlog = json_object_get(jcfg, "logging"))) {
- if (NULL != (jlogthres = json_object_get(j
int
, "log_threshold"))) {
+ if (NULL != (jlogthres = json_object_get(j
log
, "log_threshold"))) {
if (json_is_string(jlogthres)) {
trc->internal->log_threshold = str2sev(json_string_value(jlogthres));
} else {
if (json_is_string(jlogthres)) {
trc->internal->log_threshold = str2sev(json_string_value(jlogthres));
} else {
@@
-133,7
+133,7
@@
static TR_CFG_RC tr_cfg_parse_internal (TR_CFG *trc, json_t *jcfg) {
trc->internal->log_threshold = TR_DEFAULT_LOG_THRESHOLD;
}
trc->internal->log_threshold = TR_DEFAULT_LOG_THRESHOLD;
}
- if (NULL != (jconthres = json_object_get(j
int
, "console_threshold"))) {
+ if (NULL != (jconthres = json_object_get(j
log
, "console_threshold"))) {
if (json_is_string(jconthres)) {
trc->internal->console_threshold = str2sev(json_string_value(jconthres));
} else {
if (json_is_string(jconthres)) {
trc->internal->console_threshold = str2sev(json_string_value(jconthres));
} else {