Skip to content

Commit 913cda7

Browse files
lpcoxCopilot
andauthored
Update internal/proxy/handler.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 35af106 commit 913cda7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/proxy/handler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ func (h *proxyHandler) handleWithDIFC(w http.ResponseWriter, r *http.Request, pa
140140
defer difcSpan.End()
141141

142142
if !s.guardInitialized {
143-
logHandler.Printf("returning 503: proxy enforcement not configured (no --policy flag provided)")
144-
logger.LogError("proxy", "returning 503: proxy enforcement not configured (no --policy flag provided)")
143+
errMsg := "returning 503: proxy enforcement not configured (no --policy flag provided)"
144+
logHandler.Printf(errMsg)
145+
logger.LogError("proxy", errMsg)
145146
http.Error(w, "proxy enforcement not configured", http.StatusServiceUnavailable)
146147
return
147148
}

0 commit comments

Comments
 (0)