Skip to content

Commit 0f932fd

Browse files
Change severity levels to untyped
The severity levels are not int32, they are limited from 0-23.
1 parent beee24d commit 0f932fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

gelf/writer.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ var (
7676

7777
// Syslog severity levels
7878
const (
79-
LOG_EMERG = int32(0)
80-
LOG_ALERT = int32(1)
81-
LOG_CRIT = int32(2)
82-
LOG_ERR = int32(3)
83-
LOG_WARNING = int32(4)
84-
LOG_NOTICE = int32(5)
85-
LOG_INFO = int32(6)
86-
LOG_DEBUG = int32(7)
79+
LOG_EMERG = 0
80+
LOG_ALERT = 1
81+
LOG_CRIT = 2
82+
LOG_ERR = 3
83+
LOG_WARNING = 4
84+
LOG_NOTICE = 5
85+
LOG_INFO = 6
86+
LOG_DEBUG = 7
8787
)
8888

8989
// numChunks returns the number of GELF chunks necessary to transmit

0 commit comments

Comments
 (0)