Skip to content

Commit

Permalink
CID-3089 Enhance admin logging
Browse files Browse the repository at this point in the history
  • Loading branch information
geoandri committed Oct 29, 2024
1 parent feb77c0 commit 2aa170e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ class GitHubScanningService(
.forEach { repository ->
fetchManifestFilesAndSend(installation, repository)
}
syncLogService.sendInfoLog(
"Finished initial full scan for organization ${installation.account.login}"
)
}
syncLogService.sendInfoLog("Finished full scan for all available organizations")
syncLogService.sendSyncLog(
trigger = Trigger.FINISH_FULL_SYNC,
logLevel = LogLevel.INFO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,7 @@ class GitHubScanningServiceTest {
verify { syncLogService.sendInfoLog("Scanning repository TestRepo for manifest files") }
verify { syncLogService.sendInfoLog("Fetched manifest file dir/leanix.yaml from repository TestRepo") }
verify { syncLogService.sendInfoLog("Found 1 manifest files in repository TestRepo") }
verify { syncLogService.sendInfoLog("Finished initial full scan for organization testInstallation") }
verify { syncLogService.sendInfoLog("Finished full scan for all available organizations") }
}
}

0 comments on commit 2aa170e

Please sign in to comment.