Skip to content

Commit

Permalink
CID-3218: update shutdown log
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Nov 18, 2024
1 parent fd6a8f2 commit 3f057a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class GitHubAgentApplication(
val synchronizationProgress = if (cachingService.get("runId") != null) {
SynchronizationProgress.ABORTED
} else {
SynchronizationProgress.PENDING
SynchronizationProgress.FINISHED
}
syncLogService.sendSyncLog(
message = message,
logLevel = LogLevel.ERROR,
logLevel = LogLevel.INFO,
synchronizationProgress = synchronizationProgress
)
logger.error(message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class PostStartupRunner(
message = "Synchronization finished."
)
cachingService.remove("runId")
logger.info("Full sync finished")
}

private fun fullScanFailure(errorMessage: String?): String {
Expand Down

0 comments on commit 3f057a3

Please sign in to comment.