Skip to content

Commit 42fea0f

Browse files
committed
fix: use iota
1 parent de1322c commit 42fea0f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stackdriver.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ func NewConfig(projectId string) *Config {
4747
type Severity int
4848

4949
const (
50-
SeverityDefault Severity = 0
51-
SeverityDebug Severity = 100
52-
SeverityInfo Severity = 200
53-
SeverityNotice Severity = 300
54-
SeverityWarning Severity = 400
55-
SeverityError Severity = 500
56-
SeverityCritical Severity = 600
57-
SeverityAlert Severity = 700
58-
SeverityEmergency Severity = 800
50+
SeverityDefault Severity = iota * 100
51+
SeverityDebug
52+
SeverityInfo
53+
SeverityNotice
54+
SeverityWarning
55+
SeverityError
56+
SeverityCritical
57+
SeverityAlert
58+
SeverityEmergency
5959
)
6060

6161
// String returns text representation for the severity

0 commit comments

Comments
 (0)