Skip to content

Commit

Permalink
Merge pull request #37816 from nextcloud/fix/events/info-to-debug-log…
Browse files Browse the repository at this point in the history
…-legacy-events

fix(events): Log deprecated events as debug, not info
  • Loading branch information
ChristophWurst authored Apr 24, 2023
2 parents 8eda51d + ce71aa9 commit dcde970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private/EventDispatcher/GenericEventWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function log() {
}

$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]
);
Expand Down
2 changes: 1 addition & 1 deletion lib/private/EventDispatcher/SymfonyAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function dispatch($eventName, $event = null): object {
$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']
);
Expand Down

0 comments on commit dcde970

Please sign in to comment.