Skip to content

Commit

Permalink
NO-JIRA Update Paging Logging with extra information
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Sep 24, 2021
1 parent ef677d1 commit e4276e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -920,7 +920,10 @@ public void processReload() throws Exception {
}

if (cache == null || pos.getMessageNr() >= 0 && cache.getMessage(pos) == null) {
ActiveMQServerLogger.LOGGER.pageNotFound(pos);
try {
ActiveMQServerLogger.LOGGER.pageNotFound(pos, this.cursorId, this.queue.getName().toString());
} catch (Throwable ignored) {
}
if (txDeleteCursorOnReload == -1) {
txDeleteCursorOnReload = store.generateID();
}
Expand Down
Expand Up @@ -571,9 +571,9 @@ void slowConsumerDetected(String sessionID,
void timedOutFlushingExecutorsPagingCursor(PageSubscription pageSubscription);

@LogMessage(level = Logger.Level.WARN)
@Message(id = 222028, value = "Could not find page cache for page {0} removing it from the journal",
@Message(id = 222028, value = "Could not find page cache for page {0}, on queue {1}/{2} removing it from the journal",
format = Message.Format.MESSAGE_FORMAT)
void pageNotFound(PagePosition pos);
void pageNotFound(PagePosition pos, long queueID, String queue);

@LogMessage(level = Logger.Level.WARN)
@Message(id = 222029,
Expand Down

0 comments on commit e4276e8

Please sign in to comment.