nodeconf logs

This commit is contained in:
Sergey Cherepanov 2023-04-13 20:44:50 +02:00
parent eb8f760370
commit 1dc05faf58
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -127,7 +127,11 @@ func (s *service) setLastConfiguration(c Configuration) (err error) {
if s.last != nil {
beforeId = s.last.Id()
}
if s.last.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
return
}