Skip to content

Commit

Permalink
QA: Improve automation logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Sep 9, 2024
1 parent bdd0c55 commit de0b64e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions poller_automation.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@
if ($config['connection'] == 'online') {
db_force_remote_cnn();
} elseif (debounce_run_notification('db_offline')) {
cacti_log('WARNING: Main Cacti database offline or in recovery. Can not run automation', false, 'AUTOM8');
admin_email(__('Cacti System Warning'), __('WARNING: Main Cacti database offline or in recovery'));

cacti_log(sprintf('WARNING: Main Cacti database %s offline or in recovery. Can not run automation', $rdatabase_hostname), false, 'AUTOM8');
admin_email(__('Cacti System Warning'), __("WARNING: Main Cacti database %s offline or in recovery", $rdatabase_hostname));
exit(1);
}
}
Expand Down

0 comments on commit de0b64e

Please sign in to comment.