We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972b2d4 commit 6dc1e1cCopy full SHA for 6dc1e1c
src/Commands/KafkaConsumeCommand.php
@@ -7,6 +7,7 @@
7
use Ensi\LaravelPhpRdKafkaConsumer\HighLevelConsumer;
8
use Ensi\LaravelPhpRdKafkaConsumer\ProcessorData;
9
use Illuminate\Console\Command;
10
+use Illuminate\Support\Facades\Log;
11
use Symfony\Component\Console\Command\SignalableCommandInterface;
12
use Throwable;
13
@@ -96,6 +97,8 @@ public function handle(HighLevelConsumer $highLevelConsumer): int
96
97
->for($consumer)
98
->listen($topicName, $processorData, $consumerOptions);
99
} catch (Throwable $e) {
100
+ Log::error($e->getMessage(), ['exception' => $e]);
101
+
102
$this->error('An error occurred while listening to the topic: '. $e->getMessage(). ' '. $e->getFile() . '::' . $e->getLine());
103
104
return 1;
0 commit comments