mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-24 00:27:29 +01:00
Checkpoint: 858b34ef56b8
Entire-Session: 7916ffa0-cf9e-4cb7-a75f-8a1db33c75bd Entire-Strategy: manual-commit Entire-Agent: Claude Code Ephemeral-branch: entire/7f3eb44-e3b0c4
This commit is contained in:
22
85/8b34ef56b8/0/context.md
Normal file
22
85/8b34ef56b8/0/context.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Session Context
|
||||
|
||||
## User Prompts
|
||||
|
||||
### Prompt 1
|
||||
|
||||
Implement the following plan:
|
||||
|
||||
# Plan: Improve scanJob logging
|
||||
|
||||
## Context
|
||||
|
||||
`scanJob` in `internal/repository/job.go` (line 162) logs a `Warn` for every scan error, including the very common `sql.ErrNoRows` case. This produces noisy, unhelpful log lines like:
|
||||
|
||||
```
|
||||
WARN Error while scanning rows (Job): sql: no rows in result set
|
||||
```
|
||||
|
||||
Two problems:
|
||||
1. `sql.ErrNoRows` is a normal, expected condition (callers are documented to check for it). It should not produce a warning.
|
||||
2. When a real scan er...
|
||||
|
||||
Reference in New Issue
Block a user