Skip to content

ZCU-DATA/Reduce noisy WARN logs to DEBUG level#1270

Closed
milanmajchrak wants to merge 1 commit intocustomer/zcu-datafrom
propagate/reduce-warn-logs-zcu-data
Closed

ZCU-DATA/Reduce noisy WARN logs to DEBUG level#1270
milanmajchrak wants to merge 1 commit intocustomer/zcu-datafrom
propagate/reduce-warn-logs-zcu-data

Conversation

@milanmajchrak
Copy link
Collaborator

Cherry-pick of PR #1263 into customer/zcu-data.

Problem description

Changed two frequently occurring WARN log messages to DEBUG level:

  • Context.java: 'Initializing a context while an active transaction exists'
  • ClarinItemServiceImpl.java: 'Cannot update item dates metadata because the approximate date is empty'

Original PR: #1263

Changed two frequently occurring WARN log messages to DEBUG level:
- Context.java: 'Initializing a context while an active transaction exists'
- ClarinItemServiceImpl.java: 'Cannot update item dates metadata because the approximate date is empty'
Copilot AI review requested due to automatic review settings March 13, 2026 11:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to reduce log noise by downgrading two frequently occurring WARN log messages to DEBUG, improving operational signal-to-noise in customer deployments.

Changes:

  • Adds a DEBUG log in Context.init() when initializing while a transaction is already active.
  • Adds a DEBUG log in ClarinItemServiceImpl.deriveDateIssuedFromApproximateDate() when the approximate date is missing/blank.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
dspace-api/src/main/java/org/dspace/core/Context.java Adds a DEBUG log for “context initialized with active transaction” scenario (but currently introduces a compile issue).
dspace-api/src/main/java/org/dspace/content/clarin/ClarinItemServiceImpl.java Adds a DEBUG log when approximate date metadata is empty (but WARN still remains in the caller, causing duplicate logging).

You can also share your feedback on Copilot code review. Take the survey.

@milanmajchrak milanmajchrak changed the title Reduce noisy WARN logs to DEBUG level ZCU-DATA/Reduce noisy WARN logs to DEBUG level Mar 13, 2026
@milanmajchrak
Copy link
Collaborator Author

We do not need to log that.

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.

2 participants