Skip to content

Commit

Permalink
Always log SDK logs when verbose output is enabled (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Jan 25, 2024
1 parent 3f878af commit 894e434
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sentry/Laravel/Console/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Sentry\Tracing\SpanContext;
use Sentry\Tracing\TransactionContext;
use Sentry\Tracing\TransactionSource;
use Symfony\Component\Console\Output\OutputInterface;
use Throwable;

class TestCommand extends Command
Expand Down Expand Up @@ -109,6 +110,8 @@ public function __construct(TestCommand $command)

public function log($level, $message, array $context = []): void
{
$this->command->info("SDK({$level}): {$message}", OutputInterface::VERBOSITY_VERBOSE);

if ($level === 'error') {
$this->command->logMessageFromSDK($message);
}
Expand Down

0 comments on commit 894e434

Please sign in to comment.