Skip to content

added slog and shifted to structured logging. #7

Merged
kommendorkapten merged 1 commit intomainfrom
slog
Dec 16, 2025
Merged

added slog and shifted to structured logging. #7
kommendorkapten merged 1 commit intomainfrom
slog

Conversation

@kommendorkapten
Copy link
Member

example manifest

Copilot AI review requested due to automatic review settings December 16, 2025 13:55
@kommendorkapten kommendorkapten merged commit 6be949f into main Dec 16, 2025
7 checks passed
@kommendorkapten kommendorkapten deleted the slog branch December 16, 2025 14:01
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 PR migrates the codebase from unstructured fmt.Printf logging to structured logging using log/slog. Additionally, it standardizes the naming of the organization configuration field from Org to Organization and updates the deployment name template separator from underscores to slashes.

  • Replaced all fmt logging calls with structured slog calls (Info, Error)
  • Renamed Org field to Organization across configuration and environment variables
  • Updated deployment name template separator from _ to /

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
internal/controller/controller.go Migrated all logging to slog, removed unused timestamp parameter from recordContainer, updated Organization field reference
internal/controller/config.go Renamed Org field to Organization
deploy/manifest.yaml Updated DN_TEMPLATE separator and renamed ORG env var to GITHUB_ORG
cmd/deployment-tracker/main.go Migrated to slog with JSON handler, updated Organization field reference

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

if cntrlCfg.Org == "" {
fmt.Fprint(os.Stderr, "Org is required\n")
if cntrlCfg.Organization == "" {
slog.Error("Organiation is required")
@kommendorkapten kommendorkapten changed the title added slog and shifted to structured logging. Also cleaned up the added slog and shifted to structured logging. Dec 16, 2025
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

Comments