Selaa lähdekoodia

cosmetic changes - removed unuseful logging

Vaclav Kubart 20 vuotta sitten
vanhempi
commit
e1578bdacb
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      lib/cds/logger.h
  2. 1 1
      lib/xcap/parse_pres_rules.c
  3. 2 2
      lib/xcap/pres_rules.c

+ 1 - 1
lib/cds/logger.h

@@ -42,7 +42,7 @@
 #include "dprint.h"
 
 #define ERROR_LOG(a,args...)		LOG(L_ERR,a,##args)
-#define DEBUG_LOG(a,args...)		LOG(L_ERR,a,##args)
+#define DEBUG_LOG(a,args...)		LOG(L_DBG,a,##args)
 #define TRACE_LOG(a,args...)		LOG(L_ERR,a,##args)
 #define WARN_LOG(a,args...)			LOG(L_WARN,a,##args)
 #define FLUSH_LOG()					do{}while(0)

+ 1 - 1
lib/xcap/parse_pres_rules.c

@@ -283,7 +283,7 @@ static int read_transformations(xmlNode *tn, cp_transformations_t **dst)
 	if (!dst) return RES_MEMORY_ERR;
 	memset(*dst, 0, sizeof(cp_transformations_t));
 
-	WARN_LOG("transformations for pres_rules not used\n");
+	DEBUG_LOG("transformations for pres_rules not used\n");
 
 	return res;
 }

+ 2 - 2
lib/xcap/pres_rules.c

@@ -203,10 +203,10 @@ int get_pres_rules_action(cp_ruleset_t *r, const str_t *wuri,
 	
 	rule = r->rules;
 	while (rule) {
-		TRACE_LOG("TRYING rule %.*s for uri %.*s\n", 
+		DEBUG_LOG("TRYING rule %.*s for uri %.*s\n", 
 					FMT_STR(rule->id), FMT_STR(*wuri));
 		if (is_rule_for_uri(rule, wuri)) {
-			TRACE_LOG("rule %.*s matches for uri %.*s\n", 
+			DEBUG_LOG("rule %.*s matches for uri %.*s\n", 
 					FMT_STR(rule->id), FMT_STR(*wuri));
 
 			if (!rule->actions) continue;