From 0b9c15a3add1d3715c3895171894ac6480d1dfc1 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 2 Jul 2015 13:16:21 -0500 Subject: [PATCH] RT#18834: Cacti integration [added warning messages] --- FS/FS/part_export/cacti.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FS/FS/part_export/cacti.pm b/FS/FS/part_export/cacti.pm index eff6c5220..b41fe9bc8 100644 --- a/FS/FS/part_export/cacti.pm +++ b/FS/FS/part_export/cacti.pm @@ -490,8 +490,12 @@ sub process_graphs { $dbh->rollback if $oldAutoCommit; die $error; } + } else { + warn "File $thumbfile is too large, skipping"; } unlink($thumbfile); + } else { + warn "File $thumbfile does not exist, skipping"; } $job->update_statustext(49 + int($i / @graphs) * 50); } -- 2.11.0