mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-15 17:21:46 +01:00
Mismatched event types are not something to be concerned about
If a different CCMessage type was sent over the same subject as requested, that shouldn't raise a warning. This may happen in production instances, but in order to ease debugging, lower it to 'debug' level.
This commit is contained in:
@@ -152,14 +152,14 @@ func (api *NatsAPI) handleJobEvent(subject string, data []byte) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !m.IsEvent() {
|
if !m.IsEvent() {
|
||||||
cclog.Warnf("NATS %s: received non-event message, skipping", subject)
|
cclog.Debugf("NATS %s: received non-event message, skipping", subject)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if m.Name() == "job" {
|
if m.Name() == "job" {
|
||||||
api.processJobEvent(m)
|
api.processJobEvent(m)
|
||||||
} else {
|
} else {
|
||||||
cclog.Warnf("NATS %s: unexpected measurement name '%s', expected 'job'", subject, m.Name())
|
cclog.Debugf("NATS %s: unexpected measurement name '%s', expected 'job'", subject, m.Name())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user