From ccdfe6ac3b1febdfeea4be683bfde72aad3895a8 Mon Sep 17 00:00:00 2001 From: netniV Date: Sun, 14 Nov 2021 16:05:00 +0000 Subject: [PATCH] Fixing dsv_log usage (#4462) --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index 7c1bad3d05..053b5c922c 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1736,7 +1736,7 @@ function test_data_sources($graph_template_id, $host_id, $snmp_query_id = 0, $sn if (cacti_sizeof($data_template_ids) && $test_source == 'on') { foreach($data_template_ids as $dt) { - dsv_log("test_data_source($dt, $host_id, $snmp_query_id, $snmp_index, " . json_encode($values) . ")"); + dsv_log("test_data_source", [ 'dt' => $dt, 'host_id' => $host_id, 'snmp_query_id' => $snmp_query_id, 'snmp_index' => $snmp_index, 'values' => $values]); if (!test_data_source($dt, $host_id, $snmp_query_id, $snmp_index, $values)) { return false; }