From 7528453941adebb79388a5746567ad0b31f506e9 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Fri, 15 Jan 2016 22:03:23 +1000 Subject: [PATCH] Remove null message on rename --- includes/rrdtool.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/rrdtool.inc.php b/includes/rrdtool.inc.php index 011ab39cc..38949d3d9 100644 --- a/includes/rrdtool.inc.php +++ b/includes/rrdtool.inc.php @@ -370,11 +370,11 @@ function rrd_file_rename($device, $oldname, $newname) $newrrd = rrd_name($device['hostname'], $newname); if (is_file($oldrrd) && !is_file($newrrd)) { if (rename($oldrrd, $newrrd)) { - log_event("Renamed $oldrrd to $newrrd", $device); + log_event("Renamed $oldrrd to $newrrd", $device, "poller"); return true; } else { - log_event("Failed to rename $oldrrd to $newrrd", $device); + log_event("Failed to rename $oldrrd to $newrrd", $device, "poller"); return false; } }