Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
drichelson committed May 26, 2024
1 parent eebd11e commit d41b4dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/dorkly/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func reconcile(old, new RelayArchive) (RelayArchive, error) {

// compare flags
compareResult := compareMapKeys(oldEnv.data.Flags, newEnv.data.Flags)
logger.Infof("flags: %+v", compareResult)
logger.With("env", envKey).Infof("flags: %+v", compareResult)

// Process new flags
for _, flagKey := range compareResult.new {
Expand Down Expand Up @@ -164,6 +164,8 @@ func reconcile(old, new RelayArchive) (RelayArchive, error) {
}

if shouldChangeDataId {
logger.With("env", envKey).
Infof("Found changes in this environment. Incrementing dataId: %d->%d", newEnv.metadata.dataId, newEnv.metadata.dataId+1)
newEnv.metadata.incrementDataId()
}
new.envs[envKey] = newEnv
Expand Down

0 comments on commit d41b4dc

Please sign in to comment.