mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/system-cron] Add debug information
PHPBB3-9596
This commit is contained in:
committed by
Oleg Pudeyev
parent
3e707cf266
commit
652372bdb1
@@ -36,10 +36,15 @@ function output_image()
|
||||
|
||||
function do_cron($run_tasks)
|
||||
{
|
||||
global $cron_lock;
|
||||
global $cron_lock, $config;
|
||||
|
||||
foreach ($run_tasks as $task)
|
||||
{
|
||||
if (defined('DEBUG_EXTRA') && $config['use_system_cron'])
|
||||
{
|
||||
echo "[phpBB cron] Running task '{$task->get_name()}'\n";
|
||||
}
|
||||
|
||||
$task->run();
|
||||
}
|
||||
|
||||
@@ -111,6 +116,6 @@ else
|
||||
{
|
||||
if (defined('DEBUG_EXTRA'))
|
||||
{
|
||||
echo "Could not obtain cron lock.";
|
||||
echo "Could not obtain cron lock.\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user