Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Dec 29, 2025

Summary

Improves the CLI debug log listener by using ILogger constants, avoiding key errors, guarding to CLI only, and clarifying argument cleanup purpose with comments.

TODO

  • ...

Checklist

@joshtrichards joshtrichards added feature: logging ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Dec 29, 2025
@joshtrichards joshtrichards added this to the Nextcloud 33 milestone Dec 29, 2025
@joshtrichards joshtrichards marked this pull request as ready for review December 29, 2025 14:35
@joshtrichards joshtrichards requested a review from a team as a code owner December 29, 2025 14:35
@joshtrichards joshtrichards requested review from leftybournes, salmart-dev, sorbaugh and yemkareems and removed request for a team December 29, 2025 14:35
Comment on lines +99 to +101
// create a new instance of the current class and pass the desired log $level (from the CLI) options
$debugLoggerEventListener = new self($level);
// register a new event listener for the BeforeMessageLoggedEvent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// create a new instance of the current class and pass the desired log $level (from the CLI) options
$debugLoggerEventListener = new self($level);
// register a new event listener for the BeforeMessageLoggedEvent
$debugLoggerEventListener = new self($level);

I would say that this two comments are a bit useless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: logging ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants