diff options
author | Kate Butler <kate@innocraft.com> | 2019-10-10 02:34:35 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-10 02:34:35 +0300 |
commit | 3cbd95ebd2dab23546bac80139bce28cd2899d20 (patch) | |
tree | 3eac86dd30d5f6987bd663f7df4579c8e1c64cc5 /plugins/Monolog/tests | |
parent | 42f9f8cbcc350f9cbcd8a085c38f2ae9155c42d3 (diff) |
Log stack traces for PHP warnings etc (#14961)
* Allow stack traces to be logged to file for PHP warnings
* Use debug_backtrace() to generate an abbreviated stack trace
* Change trace format, fix LogTest
* smaller trace by not including unimportant doc root
makes it also easier for users to share the trace since they don't need to remove any paths
* Update ErrorHandler.php
Diffstat (limited to 'plugins/Monolog/tests')
-rw-r--r-- | plugins/Monolog/tests/Integration/LogTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Monolog/tests/Integration/LogTest.php b/plugins/Monolog/tests/Integration/LogTest.php index 69d84379fc..0f2c32ec84 100644 --- a/plugins/Monolog/tests/Integration/LogTest.php +++ b/plugins/Monolog/tests/Integration/LogTest.php @@ -257,6 +257,7 @@ class LogTest extends IntegrationTestCase 'ini.log.log_writers' => array($backend), 'ini.log.log_level' => $level, 'ini.log.string_message_format' => self::STRING_MESSAGE_FORMAT, + 'ini.log.string_message_format_trace' => self::STRING_MESSAGE_FORMAT, 'ini.log.logger_file_path' => self::getLogFileLocation(), 'Psr\Log\LoggerInterface' => \DI\get('Monolog\Logger'), 'Tests.log.allowAllHandlers' => true, |