Skip to content

Commit 322517f

Browse files
committed
Hotfix: log request
1 parent 7120489 commit 322517f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/Processors/RequestProcessor.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class RequestProcessor extends AbstractProcessor
1010
{
1111
public function __invoke(array $record) : array
1212
{
13-
if (!$this->isWrite($record['level_name']) || !Config::isEnabledValue('request')) {
13+
if (!$this->isWrite($record['level_name']) ||
14+
!Config::isEnabledValue('request.base_info') ||
15+
!Config::isEnabledValue('request.header') ||
16+
!Config::isEnabledValue('request.body')) {
1417
return $record;
1518
}
1619

src/config/mono-processor.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
<?php
22
return [
3+
// stack output when an error occurs2
34
'stacktrace' => true,
5+
6+
// memory peak at runtime
47
'memoryPeak' => true,
8+
9+
// information about the current branch and commit
510
'git' => true,
11+
12+
// php info (version)
613
'phpinfo' => true,
7-
'route' => true,
814

15+
// Output of additional information in the format JSON_PRETTY_PRINT
916
'json_format' => true,
1017

18+
1119
'request' => [
1220
'base_info' => true,
1321
'header' => true,
@@ -20,6 +28,8 @@
2028
'route' => true,
2129
'queue' => true,
2230
],
31+
32+
// levels for which you want to display
2333
'levels' => [
2434
'ERROR',
2535
'EMERGENCY'

0 commit comments

Comments
 (0)