jlewi / hydros

hydros automates hydrating and committing configuration
Apache License 2.0
4 stars 0 forks source link

Logger in repo controller doesn't set name correctly #67

Closed jlewi closed 7 months ago

jlewi commented 7 months ago

Our logger is intended to set the name of the resource in all log entries so we can easily find the log entries for a specific resource. Here are the log entries for logbook logs

We're seeing log messages that pertain to other resources

This is commit: https://github.com/jlewi/hydros/commit/7a6a0feb23bc9dc7bb07023b84c0567e6c7d598f

jlewi commented 7 months ago

The bug is here https://github.com/jlewi/hydros/blob/7a6a0feb23bc9dc7bb07023b84c0567e6c7d598f/pkg/gitops/repocontroller.go#L136

The log is referencing the unbound loop variables which is why its the same.