Why is this an issue?
The codebase mixes log/slog (structured logging) and log (standard library) across different files. Using both creates inconsistency in log format and makes log aggregation/filtering harder.
What is causing it?
cmd/clouddns/main.go uses slog (structured)
cmd/iana-import/main.go, cmd/iana-bench/main.go, cmd/apikey/main.go use log (print-style)
internal/adapters/repository/postgres.go uses log.Printf for error logging
How can it be solved?
Standardize on log/slog everywhere. Migrate utilities and cmd tools to use slog.
Category
Severity
Why is this an issue?
The codebase mixes
log/slog(structured logging) andlog(standard library) across different files. Using both creates inconsistency in log format and makes log aggregation/filtering harder.What is causing it?
cmd/clouddns/main.gousesslog(structured)cmd/iana-import/main.go,cmd/iana-bench/main.go,cmd/apikey/main.gouselog(print-style)internal/adapters/repository/postgres.gouseslog.Printffor error loggingHow can it be solved?
Standardize on
log/slogeverywhere. Migrate utilities and cmd tools to useslog.Category
Severity