mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: edit logs messages
This commit is contained in:
@@ -59,17 +59,17 @@ readonly class ChatNotificationService
|
||||
throw new BadRequestHttpException('Unsupported message type');
|
||||
}
|
||||
|
||||
$this->logger->info('Chat message sent with {schema} for Watchlist {token}',
|
||||
[
|
||||
'scheme' => $webhookScheme->name,
|
||||
'token' => $watchList->getToken(),
|
||||
]);
|
||||
$this->logger->info('Chat message sent', [
|
||||
'username' => $watchList->getUser()->getUserIdentifier(),
|
||||
'scheme' => $webhookScheme->name,
|
||||
'watchlist' => $watchList->getToken(),
|
||||
]);
|
||||
} catch (\Throwable $exception) {
|
||||
$this->logger->error('Unable to send a chat message to {scheme} for Watchlist {token}',
|
||||
[
|
||||
'scheme' => $webhookScheme->name,
|
||||
'token' => $watchList->getToken(),
|
||||
]);
|
||||
$this->logger->error('Unable to send a chat message', [
|
||||
'username' => $watchList->getUser()->getUserIdentifier(),
|
||||
'scheme' => $webhookScheme->name,
|
||||
'watchlist' => $watchList->getToken(),
|
||||
]);
|
||||
throw new BadRequestHttpException($exception->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user