Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nbroyles committed Oct 26, 2020
1 parent ecdcc66 commit 8720ea2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dbnode/namespace/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ func (r *dynamicRegistry) run() {
r.logger.Warn("dynamic namespace registry received older version, skipping",
zap.Int("version", val.Version()))
continue
} else if !ok {
r.logger.Debug("current value for dynamic registry is nil. this should only happen on initialization")
}

m, err := getMapFromUpdate(val, r.opts.ForceColdWritesEnabled())
Expand All @@ -249,6 +251,8 @@ func (r *dynamicRegistry) run() {
r.logger.Warn("dynamic namespace registry received identical update, skipping",
zap.Int("version", val.Version()))
continue
} else if !ok {
r.logger.Debug("current map for dynamic registry is nil. this should only happen on initialization")
}

r.logger.Info("dynamic namespace registry updated to version",
Expand Down

0 comments on commit 8720ea2

Please sign in to comment.