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 2aa170e commit 5214381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ class GitHubScanningService(
}
}
logger.info("Sending organizations data")
syncLogService.sendInfoLog(
"The connector found ${organizations.filter { it.installed }.size} " +
"organizations with GitHub application installed."
)
syncLogService.sendInfoLog("The connector found ${organizations.size} available organizations.")
webSocketService.sendMessage("${cachingService.get("runId")}/organizations", organizations)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class GitHubScanningServiceTest {
every { cachingService.get("runId") } returns runId
gitHubScanningService.scanGitHubResources()
verify { webSocketService.sendMessage(eq("$runId/organizations"), any()) }
verify { syncLogService.sendInfoLog("The connector found 0 organizations with GitHub application installed.") }
verify { syncLogService.sendInfoLog("The connector found 1 available organizations.") }
}

Expand Down

0 comments on commit 5214381

Please sign in to comment.