Log deprecated events as debug

Since this can spam the log quite agressively we should log it as debug
and not info.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-07-02 10:49:11 +02:00
parent 7fd34d5d64
commit c88402db47
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class SymfonyAdapter implements EventDispatcherInterface {
$this->eventDispatcher->dispatch($eventName, $event); $this->eventDispatcher->dispatch($eventName, $event);
} else { } else {
// Legacy event // Legacy event
$this->logger->info( $this->logger->debug(
'Deprecated event type for {name}: {class}', 'Deprecated event type for {name}: {class}',
[ 'name' => $eventName, 'class' => is_object($event) ? get_class($event) : 'null' ] [ 'name' => $eventName, 'class' => is_object($event) ? get_class($event) : 'null' ]
); );