Move logging to tr_internal
authorSam Hartman <hartmans@debian.org>
Tue, 17 Mar 2015 19:18:48 +0000 (15:18 -0400)
committerSam Hartman <hartmans@debian.org>
Tue, 17 Mar 2015 19:18:48 +0000 (15:18 -0400)
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));