Skip to content

Commit

Permalink
Merge pull request #445 from aarshkshah1992/feat/cluster-level-mismatch
Browse files Browse the repository at this point in the history
Adjust cluster level while encoding as well
  • Loading branch information
Stebalien authored Feb 5, 2020
2 parents f919cde + 9a344cb commit 3ea48dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pb/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ea48dc

Please sign in to comment.