Kaynağa Gözat

qdevice: Change log level to NOTICE on PASS

Previously when heuristics result became PASS it was logged as an error.
It shouldn't be and error message so change it to LOG_NOTICE level.

Signed-off-by: liangxin1300 <XLiang@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
liangxin1300 6 yıl önce
ebeveyn
işleme
5cb2ff57f8
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      qdevices/qdevice-net-heuristics.c

+ 2 - 1
qdevices/qdevice-net-heuristics.c

@@ -94,7 +94,8 @@ qdevice_net_regular_heuristics_exec_result_callback(void *heuristics_instance_pt
 	}
 
 	if (net_instance->latest_heuristics_result != heuristics) {
-		log(LOG_ERR, "Heuristics result changed from %s to %s",
+		log(heuristics == TLV_HEURISTICS_PASS ? LOG_NOTICE : LOG_ERR,
+		    "Heuristics result changed from %s to %s",
 		    tlv_heuristics_to_str(net_instance->latest_heuristics_result),
 		    tlv_heuristics_to_str(heuristics));