Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 9c600c0

Browse files
committed
gofmt and move up logs
1 parent 312c4f7 commit 9c600c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metrictank.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func main() {
106106
Initialize Logger
107107
***********************************/
108108
log.NewLogger(0, "console", fmt.Sprintf(`{"level": %d, "formatting":false}`, logLevel))
109-
109+
110110
/***********************************
111111
Initialize Configuration
112112
***********************************/
@@ -159,6 +159,9 @@ func main() {
159159
/***********************************
160160
Set Log Levels
161161
***********************************/
162+
mdata.LogLevel = logLevel
163+
inKafkaMdm.LogLevel = logLevel
164+
api.LogLevel = logLevel
162165
// workaround for https://github.com/grafana/grafana/issues/4055
163166
switch logLevel {
164167
case 0:
@@ -176,9 +179,6 @@ func main() {
176179
case 6:
177180
log.Level(log.FATAL)
178181
}
179-
mdata.LogLevel = logLevel
180-
inKafkaMdm.LogLevel = logLevel
181-
api.LogLevel = logLevel
182182

183183
/***********************************
184184
Validate settings needed for clustering

0 commit comments

Comments
 (0)