Browse Source

fix(events): Log deprecated events as debug, not info

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Christoph Wurst 1 year ago
parent
commit
ce71aa9acb

+ 1 - 1
lib/private/EventDispatcher/GenericEventWrapper.php

@@ -54,7 +54,7 @@ class GenericEventWrapper extends GenericEvent {
 		}
 
 		$class = ($this->event !== null && is_object($this->event)) ? get_class($this->event) : 'null';
-		$this->logger->info(
+		$this->logger->debug(
 			'Deprecated event type for {name}: {class} is used',
 			[ 'name' => $this->eventName, 'class' => $class]
 		);

+ 1 - 1
lib/private/EventDispatcher/SymfonyAdapter.php

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