Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(log): Log exception class when message is empty #41406

Merged

Conversation

nickvergessen
Copy link
Member

  • Resolves:
  • Before is first line
  • After is last line

grafik

Checklist

@nickvergessen nickvergessen added bug 3. to review Waiting for reviews labels Nov 13, 2023
@nickvergessen nickvergessen added this to the Nextcloud 28 milestone Nov 13, 2023
@nickvergessen nickvergessen self-assigned this Nov 13, 2023
@nickvergessen nickvergessen requested review from ArtificialOwl, Fenn-CS and sorbaugh and removed request for a team November 13, 2023 08:50
Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

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

Maybe add an "Exception thrown:" prefix for context?

@blizzz blizzz mentioned this pull request Nov 13, 2023
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Can we also find out where an empty log message is logged?

@nickvergessen
Copy link
Member Author

Can we also find out where an empty log message is logged?

The error from production was in logged via this:

\OC::$server->get(LoggerInterface::class)->error($ex->getMessage(), [

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/noid/log-exception-class-when-message-is-empty branch from 78915b9 to a5684ea Compare November 13, 2023 11:45
@nickvergessen
Copy link
Member Author

Added the prefix

@nickvergessen nickvergessen merged commit 073ec6d into master Nov 13, 2023
48 of 50 checks passed
@nickvergessen nickvergessen deleted the bugfix/noid/log-exception-class-when-message-is-empty branch November 13, 2023 13:28
@nickvergessen
Copy link
Member Author

/backport to stable27

@nickvergessen
Copy link
Member Author

/backport to stable26

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

Successfully merging this pull request may close these issues.

None yet

3 participants