mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-24 00:27:29 +01:00
Checkpoint: 20746187d135
Entire-Session: cee37f8b-4e17-4b3b-b57e-6ed3ccc8fba7 Entire-Strategy: manual-commit Entire-Agent: Claude Code Ephemeral-branch: entire/6855d62-e3b0c4
This commit is contained in:
17
20/746187d135/0/context.md
Normal file
17
20/746187d135/0/context.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Session Context
|
||||
|
||||
## User Prompts
|
||||
|
||||
### Prompt 1
|
||||
|
||||
Implement the following plan:
|
||||
|
||||
# Plan: Improve GetUser logging
|
||||
|
||||
## Context
|
||||
|
||||
`GetUser` in `internal/repository/user.go` (line 75) logs a `Warn` for every query error, including the common `sql.ErrNoRows` case (user not found). Two problems:
|
||||
|
||||
1. `sql.ErrNoRows` is a normal, expected condition — many callers check for it explicitly. It should not produce a warning.
|
||||
2. The log message **omits the actual error**: `"Error while querying user '%v' from database"` gives no clue what went wrong for re...
|
||||
|
||||
Reference in New Issue
Block a user