adjust cluster level while encoding as well

This commit is contained in:
Aarsh Shah 2020-02-05 10:12:20 +05:30
parent f919cde5d4
commit 9a344cb274

View File

@ -135,7 +135,7 @@ func (m *Message) GetClusterLevel() int {
// default "no value" protobuf behavior (0)
func (m *Message) SetClusterLevel(level int) {
lvl := int32(level)
m.ClusterLevelRaw = lvl
m.ClusterLevelRaw = lvl + 1
}
// Loggable turns a Message into machine-readable log output