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

Distinguish error logging between thrown Errors and ServiceExceptions #1955

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ash211
Copy link
Contributor

@ash211 ash211 commented Feb 10, 2023

Before this PR

When seeing "Error handling request" in logs, it is difficult to distinguish if the problem is a thrown Error or a thrown ServiceException.

After this PR

==COMMIT_MSG==
Distinguish error logging between thrown Errors and ServiceExceptions
==COMMIT_MSG==

In general, log messages from a class should be unique, so that someone seeing the message and comparing with source code can uniquely identify the location of the log.

@changelog-app
Copy link

changelog-app bot commented Feb 10, 2023

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Distinguish error logging between thrown Errors and ServiceExceptions

Check the box to generate changelog(s)

  • Generate changelog entry

@ash211 ash211 marked this pull request as ready for review February 10, 2023 07:03
@pkoenig10
Copy link
Member

I frequently search for Error handling request when I want to find exceptions being thrown by my service. When starting my investigation, I don't actual know what kind of exceptions are being thrown. If different exceptions produce different error messages, it is going to be much more difficult to search for and find these errors.

Can you explain what problem you are trying to solve here? You can always determine the exception thrown by looking at the included stacktrace.

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

Successfully merging this pull request may close these issues.

None yet

3 participants