mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Remove null message on rename
This commit is contained in:
@@ -370,11 +370,11 @@ function rrd_file_rename($device, $oldname, $newname)
|
|||||||
$newrrd = rrd_name($device['hostname'], $newname);
|
$newrrd = rrd_name($device['hostname'], $newname);
|
||||||
if (is_file($oldrrd) && !is_file($newrrd)) {
|
if (is_file($oldrrd) && !is_file($newrrd)) {
|
||||||
if (rename($oldrrd, $newrrd)) {
|
if (rename($oldrrd, $newrrd)) {
|
||||||
log_event("Renamed $oldrrd to $newrrd", $device);
|
log_event("Renamed $oldrrd to $newrrd", $device, "poller");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log_event("Failed to rename $oldrrd to $newrrd", $device);
|
log_event("Failed to rename $oldrrd to $newrrd", $device, "poller");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user