Skip to content

Commit

Permalink
Add a bit more information to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Oct 22, 2024
1 parent a1237f8 commit 4a75031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ private void syncByQuery(String query, HandlerProjectContext context, Consumer<J
int max = 100;
do {
issues = context.sourceJiraClient().find(query, start, max);
Log.infof("Sync by query \"%s\" will try syncing %s issues.",
query.substring(0, Math.min(100, query.length())), issues.total);
issues.issues.forEach(action);

start += max;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public final void run() {
Thread.currentThread().interrupt();
} finally {
failureCollector.close();
Log.infof("Pending events in %s to process: %s", context.projectGroupName(),
context.pendingEventsInCurrentContext());
Log.infof("Finished processing %s. Pending events in %s to process: %s", this.toString(),
context.projectGroupName(), context.pendingEventsInCurrentContext());
}
}

Expand Down

0 comments on commit 4a75031

Please sign in to comment.