mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
replace ugly shell echo by logfile()
git-svn-id: http://www.observium.org/svn/observer/trunk@1736 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -326,7 +326,8 @@ if($polled_devices) {
|
||||
|
||||
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $polled_devices devices polled in $poller_time secs";
|
||||
if ($debug) echo("$string\n");
|
||||
shell_exec("echo '".$string."' >> ".$config['log_file']); # FIXME EWW
|
||||
|
||||
logfile($string);
|
||||
|
||||
unset($config); ### Remove this for testing
|
||||
|
||||
|
Reference in New Issue
Block a user