Skip to content

Commit 1452159

Browse files
committed
increase log priority to debug in cron_debug.php
1 parent 9e9681e commit 1452159

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/cron_debug.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
die('Usage example: php cron_debug.php --cronjob=100-mailbox_stats.inc.php'."\n");
5656
}
5757

58+
// increase log priority to debug - we are debugging a cronjob after all
59+
$conf['log_priority'] = LOGLEVEL_DEBUG;
60+
5861
// Load and run the cronjob
5962
$name = substr($cronjob_file, 0, strpos($cronjob_file, '.'));
6063
if(preg_match('/^\d+\-(.*)$/', $name, $match)) $name = $match[1]; // strip numerical prefix from file name

server/lib/classes/cron.d/800-letsencrypt_cleanup.inc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class cronjob_letsencrypt_cleanup extends cronjob {
3636
public function onRunJob() {
3737
global $app, $conf;
3838
$app->uses('letsencrypt,ini_parser,getconf');
39-
$conf['log_priority'] = LOGLEVEL_DEBUG;
4039

4140
$server_db_record = $app->db->queryOneRecord("SELECT * FROM server WHERE server_id = ?", $conf['server_id']);
4241
if(!$server_db_record || !$server_db_record['web_server']) {

0 commit comments

Comments
 (0)