Merge pull request #360 from nachtgeist/master

cron_traffic: replace echo by log message
This commit is contained in:
Michael Kaufmann
2016-06-15 16:33:19 +02:00
committed by GitHub

View File

@@ -139,7 +139,7 @@ while ($row_database = $databases_stmt->fetch(PDO::FETCH_ASSOC)) {
// sum up result
$mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['customerusage']);
} else {
echo "Seems like the database " . $row_database['databasename'] . " had been removed manually.\n";
$cronlog->logAction(CRON_ACTION, LOG_WARNING, "Seems like the database " . $row_database['databasename'] . " had been removed manually.");
}
}