Skip to content

Commit 27fcabe

Browse files
kosmozCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6e4af89 commit 27fcabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handlers/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func agentLoginHandler(w http.ResponseWriter, r *http.Request) {
140140
log := internalctx.GetLogger(ctx)
141141

142142
if targetID, targetSecret, ok := r.BasicAuth(); !ok {
143-
log.Error("invalid Basic Auth")
143+
log.Info("invalid Basic Auth")
144144
w.WriteHeader(http.StatusUnauthorized)
145145
} else if parsedTargetID, err := uuid.Parse(targetID); err != nil {
146146
http.Error(w, "targetId is not a valid UUID", http.StatusBadRequest)

0 commit comments

Comments
 (0)