Skip to content

Commit 881dc82

Browse files
committed
Use only debug level
1 parent 8ea409b commit 881dc82

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/lockdown/lockdown.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (c *RepoAccessCache) IsSafeContent(ctx context.Context, username, owner, re
119119
return false, err
120120
}
121121

122-
c.logInfo(ctx, fmt.Sprintf("evaluated repo access fur user %s to %s/%s for content filtering, result: hasPushAccess=%t, isPrivate=%t",
122+
c.logDebug(ctx, fmt.Sprintf("evaluated repo access fur user %s to %s/%s for content filtering, result: hasPushAccess=%t, isPrivate=%t",
123123
username, owner, repo, repoInfo.HasPushAccess, repoInfo.IsPrivate))
124124

125125
if c.isTrustedBot(username) || repoInfo.IsPrivate || repoInfo.ViewerLogin == strings.ToLower(username) {
@@ -255,10 +255,6 @@ func (c *RepoAccessCache) logDebug(ctx context.Context, msg string, attrs ...slo
255255
c.log(ctx, slog.LevelDebug, msg, attrs...)
256256
}
257257

258-
func (c *RepoAccessCache) logInfo(ctx context.Context, msg string, attrs ...slog.Attr) {
259-
c.log(ctx, slog.LevelInfo, msg, attrs...)
260-
}
261-
262258
func (c *RepoAccessCache) isTrustedBot(username string) bool {
263259
_, ok := c.trustedBotLogins[strings.ToLower(username)]
264260
return ok

0 commit comments

Comments
 (0)