nodeconf logs
This commit is contained in:
parent
3fcbeb2020
commit
2dad7f5c62
@ -125,7 +125,11 @@ func (s *service) setLastConfiguration(c Configuration) (err error) {
|
|||||||
if s.last != nil {
|
if s.last != nil {
|
||||||
beforeId = s.last.Id()
|
beforeId = s.last.Id()
|
||||||
}
|
}
|
||||||
|
if s.last.Id() != "" {
|
||||||
log.Info("nodeConf changed", zap.String("before", beforeId), zap.String("after", nc.Id()))
|
log.Info("nodeConf changed", zap.String("before", beforeId), zap.String("after", nc.Id()))
|
||||||
|
} else {
|
||||||
|
log.Info("nodeConf applied", zap.String("netId", nc.Configuration().NetworkId), zap.String("after", nc.Id()))
|
||||||
|
}
|
||||||
s.last = nc
|
s.last = nc
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user