Skip to content

Commit

Permalink
CID-2744: remove println statement and add logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Jul 23, 2024
1 parent 1ef6b49 commit 9dfedf6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class GitHubScanningService(
installations: List<Installation>
) {
val installationToken = cachingService.get("installationToken:${installations.first().id}")
println(installationToken)
val organizations = gitHubClient.getOrganizations("Bearer $installationToken")
.map { organization ->
if (installations.find { it.account.login == organization.login } != null) {
Expand All @@ -64,6 +63,7 @@ class GitHubScanningService(
OrganizationDto(organization.id, organization.nodeId, organization.login, false)
}
}
logger.info("Sending organizations data")
webSocketService.sendMessage(WS_ORGANIZATIONS_TOPIC, organizations)
}

Expand All @@ -77,6 +77,7 @@ class GitHubScanningService(
token = installationToken,
cursor = cursor
)
logger.info("Sending page $page of repositories")
webSocketService.sendMessage(WS_REPOSITORIES_TOPIC, repositoriesPage.repositories)
cursor = repositoriesPage.cursor
totalRepos += repositoriesPage.repositories.size
Expand Down

0 comments on commit 9dfedf6

Please sign in to comment.