RT#18834: Cacti integration [warnings display to screen]
authorJonathan Prykop <jonathan@freeside.biz>
Thu, 2 Jul 2015 18:36:27 +0000 (13:36 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Thu, 2 Jul 2015 18:36:27 +0000 (13:36 -0500)
FS/FS/part_export/cacti.pm

index b41fe9b..c83e453 100644 (file)
@@ -491,11 +491,11 @@ sub process_graphs {
           die $error;
         }
       } else {
-        warn "File $thumbfile is too large, skipping";
+        $svchtml .= qq(<P STYLE="color: #FF0000">File $thumbfile is too large, skipping</P>);
       }
       unlink($thumbfile);
     } else {
-      warn "File $thumbfile does not exist, skipping";
+      $svchtml .= qq(<P STYLE="color: #FF0000">File $thumbfile does not exist, skipping</P>);
     }
     $job->update_statustext(49 + int($i / @graphs) * 50);
   }