Skip to content

Logging#4

Merged
LightJack05 merged 2 commits intomainfrom
logging
Jan 21, 2026
Merged

Logging#4
LightJack05 merged 2 commits intomainfrom
logging

Conversation

@LightJack05
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 21, 2026 16:03
@LightJack05 LightJack05 merged commit d80c8a9 into main Jan 21, 2026
12 checks passed
@LightJack05 LightJack05 deleted the logging branch January 21, 2026 16:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds logging statements to the Authentication middleware to improve debugging and monitoring capabilities. The changes add log output for various error conditions that can occur during the authentication flow.

Changes:

  • Added log statements for four error scenarios in the authentication middleware: request creation failure, session validation failure, response reading failure, and JSON parsing failure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

requestUrl := fmt.Sprintf("%s/%s", serviceconfig.GetConfig().ApiRootUrl, "auth/session")
request, err := http.NewRequest("GET", requestUrl, nil)
if err != nil {
log.Printf("[AUTH] Failed to contacft auth service at %s: %v", requestUrl, err)
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a spelling error in the log message: "contacft" should be "contact".

Suggested change
log.Printf("[AUTH] Failed to contacft auth service at %s: %v", requestUrl, err)
log.Printf("[AUTH] Failed to contact auth service at %s: %v", requestUrl, err)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant