summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-07-02 13:16:21 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-07-02 13:54:42 -0500
commit54f53f28eb9dbd42705fabc76a17cfdb44b57b85 (patch)
tree6efa6108216d0388d29329c5f9ce8731b9e6bc3b
parent0cabf7d128df2d7286edc9697e311027eb94c596 (diff)
RT#18834: Cacti integration [added warning messages]
-rw-r--r--FS/FS/part_export/cacti.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_export/cacti.pm b/FS/FS/part_export/cacti.pm
index cbb50af79..cfd71b241 100644
--- a/FS/FS/part_export/cacti.pm
+++ b/FS/FS/part_export/cacti.pm
@@ -493,8 +493,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);
}