Skip to content

Commit

Permalink
Log reported messages as well
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Dec 17, 2023
1 parent 6de51f5 commit 7d6a7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MTProto.php
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,7 @@ public function sendMessageToAdmins(
*/
public function report(string $message, string $parseMode = ''): void
{
$this->logger->logger("Reporting: $message", Logger::FATAL_ERROR);
if (!$this->reportDest) {
return;
}
Expand Down

0 comments on commit 7d6a7f2

Please sign in to comment.