cron_traffic: replace echo by log message

This commit is contained in:
Daniel Reichelt
2016-05-20 23:30:18 +02:00
parent 88ccf5b869
commit bd36145ad6

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.");
}
}