Skip to content

refactor: use structured log attributes instead of fmt.Sprintf#196

Merged
jrobotham-square merged 1 commit intomainfrom
jrobotham/structured-logging
Mar 17, 2026
Merged

refactor: use structured log attributes instead of fmt.Sprintf#196
jrobotham-square merged 1 commit intomainfrom
jrobotham/structured-logging

Conversation

@jrobotham-square
Copy link
Contributor

Replace interpolated log values with structured slog attributes.

  • internal/httputil/logging.go: split request field into separate method and uri attributes
  • internal/strategy/git/git.go: remove duration from error string (already logged as structured field on success)

@jrobotham-square jrobotham-square requested a review from a team as a code owner March 17, 2026 04:19
@jrobotham-square jrobotham-square requested review from inez and removed request for a team March 17, 2026 04:19
@jrobotham-square jrobotham-square force-pushed the jrobotham/structured-logging branch from a893b69 to 85c222b Compare March 17, 2026 04:25
@jrobotham-square jrobotham-square merged commit f94b85a into main Mar 17, 2026
7 checks passed
@jrobotham-square jrobotham-square deleted the jrobotham/structured-logging branch March 17, 2026 04:51
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.

3 participants