Skip to content

Commit

Permalink
NEXT-34330 - Exclude shopware channels from monolog console handler
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSkroblin committed Mar 12, 2024
1 parent 7c18487 commit d62c4a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ monolog:
# type: chromephp
# level: info
console:
type: console
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
6 changes: 3 additions & 3 deletions src/Core/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public function boot(): void
}

if ($this->debug && !EnvironmentHelper::hasVariable('SHELL_VERBOSITY')) {
putenv('SHELL_VERBOSITY=3');
$_ENV['SHELL_VERBOSITY'] = 3;
$_SERVER['SHELL_VERBOSITY'] = 3;
putenv('SHELL_VERBOSITY=1');
$_ENV['SHELL_VERBOSITY'] = 1;
$_SERVER['SHELL_VERBOSITY'] = 1;
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ monolog:
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
channels: ["!event", "!doctrine", "!console", "!elasticsearch", "!business_events"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ monolog:
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
channels: ["!event", "!doctrine", "!elasticsearch", "!business_events"]

0 comments on commit d62c4a1

Please sign in to comment.