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(frontend logs): Silencing harmless log messages (and adding path for future) #7254

Merged

Conversation

jjoyce0510
Copy link
Collaborator

@jjoyce0510 jjoyce0510 commented Feb 4, 2023

Summary

In this PR I've introduced a custom logback filter that will accept partial log messages and filter them out on a case by case basis.

This is useful for hushing specific warnings or errors coming from the underlying libraries (like Pac4j) without having to silence them completely. (e.g. at class or package level).

We only silence in the stdout logger, but keep in the file appender for our debugging purposes.

Specific warnings which are hushed:

  • [Pac4j] Preferred JWS algorithm: null not available. Using all metadata algorithms: [RS256]
  • [Pacj] Unable to renew the session. The session store may not support this feature
  • [Our Code]2023-02-03 16:42:28,995 [application-akka.actor.default-dispatcher-16] WARN application - The submitted callback is unsupported! type: class org.eclipse.jetty.jaas.callback.ObjectCallback

Status

Ready for review

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Feb 4, 2023
@@ -10,6 +10,10 @@
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<filter class="log.LogMessageFilter">
Copy link
Contributor

Choose a reason for hiding this comment

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

woah this is super cool

/**
* A set of messages to exclude.
*/
private final List<String> excluded = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice so the <excluded> tag in the xml file just automatically fills this out?

@anshbansal anshbansal merged commit 5859576 into datahub-project:master Feb 6, 2023
ericyomi pushed a commit to ericyomi/datahub that referenced this pull request Feb 8, 2023
oleg-ruban pushed a commit to RChygir/datahub that referenced this pull request Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants