mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[ticket/12636] Add log.session_errors
PHPBB3-12636
This commit is contained in:
parent
1c406c70e0
commit
f93ddcb382
4 changed files with 16 additions and 1 deletions
|
@ -17,3 +17,6 @@ core:
|
||||||
extensions:
|
extensions:
|
||||||
composer_debug: true
|
composer_debug: true
|
||||||
composer_verbose: true
|
composer_verbose: true
|
||||||
|
|
||||||
|
log:
|
||||||
|
session_errors: true
|
||||||
|
|
|
@ -54,6 +54,12 @@ class container_configuration implements ConfigurationInterface
|
||||||
->booleanNode('composer_verbose')->defaultValue(false)->end()
|
->booleanNode('composer_verbose')->defaultValue(false)->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
->arrayNode('log')
|
||||||
|
->addDefaultsIfNotSet()
|
||||||
|
->children()
|
||||||
|
->booleanNode('session_errors')->defaultValue(false)->end()
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
return $treeBuilder;
|
return $treeBuilder;
|
||||||
|
|
|
@ -110,6 +110,12 @@ class core extends Extension
|
||||||
{
|
{
|
||||||
$container->setParameter('debug.' . $name, $value);
|
$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
|
else
|
||||||
{
|
{
|
||||||
// Added logging temporarily to help debug bugs...
|
// 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)
|
if ($referer_valid)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue