Move logging to tr_internal
[trust_router.git] / common / tr_config.c
index 51999c4..cc352a0 100644 (file)
@@ -120,7 +120,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(jint, "logging"))) {
       if (NULL != (jlogthres = json_object_get(jlog, "log_threshold"))) {
         if (json_is_string(jlogthres)) {
                  trc->internal->log_threshold = str2sev(json_string_value(jlogthres));