Merge pull request #445 from aarshkshah1992/feat/cluster-level-mismatch

Adjust cluster level while encoding as well
This commit is contained in:
Steven Allen 2020-02-05 09:59:21 -08:00 committed by GitHub
commit 3ea48dc7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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