[Messenger] added missing information in messenger logs
This commit is contained in:
parent
f206538c79
commit
20664caf25
@ -46,7 +46,7 @@ class LoggingMiddleware implements MiddlewareInterface
|
|||||||
$envelope = $stack->next()->handle($envelope, $stack);
|
$envelope = $stack->next()->handle($envelope, $stack);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$context['exception'] = $e;
|
$context['exception'] = $e;
|
||||||
$this->logger->warning('An exception occurred while handling message "{class}"', $context);
|
$this->logger->warning('An exception occurred while handling message "{class}": '.$e->getMessage(), $context);
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ class SendMessageMiddleware implements MiddlewareInterface
|
|||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$context['exception'] = $e;
|
$context['exception'] = $e;
|
||||||
$this->logger->warning('An exception occurred while handling message "{class}"', $context);
|
$this->logger->warning('An exception occurred while handling message "{class}": '.$e->getMessage(), $context);
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user