-
Notifications
You must be signed in to change notification settings - Fork 2
VSB-TUO/Reduce noisy WARN logs to DEBUG level #1263
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,8 +187,8 @@ protected void init() { | |
| "Check previous entries in the dspace.log to find why the db failed to initialize."); | ||
| } else { | ||
| if (isTransactionAlive()) { | ||
| log.warn("Initializing a context while an active transaction exists. Context with hash: {}.", | ||
| getHash()); | ||
| log.debug("Initializing a context while an active transaction exists. Context with hash: {}.", | ||
| getHash()); | ||
|
Comment on lines
+190
to
+191
|
||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is DEBUG-only, the message becomes less actionable because it doesn't identify which Item is being processed. Consider including the item UUID/ID (and possibly the metadata field name) in the log message so that enabling DEBUG helps pinpoint the problematic record without additional instrumentation.