From fbf93de67a594220c1d464c1065b0cc6ee19e89c Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sat, 18 Jan 2020 02:09:50 +0100 Subject: Reduce legacy event log level to debug This is to reduce log flooding on info log level, which is currently expected tue to deprecated event use in many apps and core: https://github.com/nextcloud/server/issues/18331 This information is helpful for developers only, hence should be sufficient as debug log. Especially due to the extremely high frequency this log can happen, this currently practically forces admins to disable info logs, which conflicts with other needs. Signed-off-by: MichaIng --- lib/private/EventDispatcher/SymfonyAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php index 4d473854962..dd5e702a602 100644 --- a/lib/private/EventDispatcher/SymfonyAdapter.php +++ b/lib/private/EventDispatcher/SymfonyAdapter.php @@ -63,7 +63,7 @@ class SymfonyAdapter implements EventDispatcherInterface { $this->eventDispatcher->dispatch($eventName, $event); } else { // Legacy event - $this->logger->info( + $this->logger->debug( 'Deprecated event type for {name}: {class}', [ 'name' => $eventName, 'class' => is_object($event) ? get_class($event) : 'null' ] ); -- cgit v1.2.3