mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/system-cron] Add debug information
PHPBB3-9596
This commit is contained in:
parent
3e707cf266
commit
652372bdb1
1 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue