diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-04-19 11:56:10 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-04-19 11:56:10 +0200 |
commit | ce71aa9acb9cf6bd9a6ea95acc852c5b5b3321b6 (patch) | |
tree | ae6a7d769b8a3d2cc59a4d2f1c08337896a6a2ad /lib | |
parent | 9db33055b208518601ff7b389188c032f8792e39 (diff) | |
download | nextcloud-server-ce71aa9acb9cf6bd9a6ea95acc852c5b5b3321b6.tar.gz nextcloud-server-ce71aa9acb9cf6bd9a6ea95acc852c5b5b3321b6.zip |
fix(events): Log deprecated events as debug, not info
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/EventDispatcher/GenericEventWrapper.php | 2 | ||||
-rw-r--r-- | lib/private/EventDispatcher/SymfonyAdapter.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/EventDispatcher/GenericEventWrapper.php b/lib/private/EventDispatcher/GenericEventWrapper.php index b4d851d700f..f0807b57a8b 100644 --- a/lib/private/EventDispatcher/GenericEventWrapper.php +++ b/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] ); diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php index aa6fcbc1ad3..7354d58d4e0 100644 --- a/lib/private/EventDispatcher/SymfonyAdapter.php +++ b/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'] ); |