mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Compare commits
4 Commits
a968dfabe8
...
fedf2310d2
Author | SHA1 | Date | |
---|---|---|---|
|
fedf2310d2 | ||
|
a81b7855de | ||
|
e93dafb2fe | ||
|
8b4865ed2c |
@ -4,6 +4,7 @@ namespace SilverStripe\Logging;
|
|||||||
|
|
||||||
use Monolog\Formatter\FormatterInterface;
|
use Monolog\Formatter\FormatterInterface;
|
||||||
use Monolog\Handler\AbstractProcessingHandler;
|
use Monolog\Handler\AbstractProcessingHandler;
|
||||||
|
use Monolog\Level;
|
||||||
use Monolog\LogRecord;
|
use Monolog\LogRecord;
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
@ -34,9 +35,9 @@ class HTTPOutputHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
private $cliFormatter = null;
|
private $cliFormatter = null;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct(int|string|Level $level = Level::Debug, bool $bubble = true)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct($level, $bubble);
|
||||||
Deprecation::withSuppressedNotice(function () {
|
Deprecation::withSuppressedNotice(function () {
|
||||||
Deprecation::notice(
|
Deprecation::notice(
|
||||||
'5.4.0',
|
'5.4.0',
|
||||||
|
@ -86,7 +86,7 @@ class DBQueryBuilder
|
|||||||
if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) {
|
if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) {
|
||||||
return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN');
|
return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN');
|
||||||
}
|
}
|
||||||
return static::config()->get('trace_query_origin');
|
return static::config()->get('trace_query_origin') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user