1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-11 11:24:23 +02:00

[ticket/12636] Add log.session_errors

PHPBB3-12636
This commit is contained in:
Rubén Calvo 2018-09-01 01:16:57 +02:00
parent 1c406c70e0
commit f93ddcb382
4 changed files with 16 additions and 1 deletions
phpBB

@ -17,3 +17,6 @@ core:
extensions:
composer_debug: true
composer_verbose: true
log:
session_errors: true

@ -54,6 +54,12 @@ class container_configuration implements ConfigurationInterface
->booleanNode('composer_verbose')->defaultValue(false)->end()
->end()
->end()
->arrayNode('log')
->addDefaultsIfNotSet()
->children()
->booleanNode('session_errors')->defaultValue(false)->end()
->end()
->end()
->end()
;
return $treeBuilder;

@ -110,6 +110,12 @@ class core extends Extension
{
$container->setParameter('debug.' . $name, $value);
}
// Set the log options
foreach ($config['log'] as $name => $value)
{
$container->setParameter('log.' . $name, $value);
}
}
/**

@ -481,7 +481,7 @@ class session
else
{
// Added logging temporarily to help debug bugs...
if (defined('DEBUG') && $this->data['user_id'] != ANONYMOUS)
if ($phpbb_container->getParameter('log.session_errors') && $this->data['user_id'] != ANONYMOUS)
{
if ($referer_valid)
{