mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-30 15:18:51 +00:00
[ticket/12636] Add log.session_errors
PHPBB3-12636
This commit is contained in:
parent
4f402465bf
commit
303b823847
4 changed files with 16 additions and 1 deletions
|
@ -15,3 +15,6 @@ core:
|
||||||
debug: true
|
debug: true
|
||||||
auto_reload: true
|
auto_reload: true
|
||||||
enable_debug_extension: true
|
enable_debug_extension: true
|
||||||
|
|
||||||
|
log:
|
||||||
|
session_errors: true
|
||||||
|
|
|
@ -49,6 +49,12 @@ class container_configuration implements ConfigurationInterface
|
||||||
->booleanNode('enable_debug_extension')->defaultValue(false)->end()
|
->booleanNode('enable_debug_extension')->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;
|
||||||
|
|
|
@ -99,6 +99,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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -479,7 +479,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