mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
close all existing loggers before re-initilizing loggers. fixes #2533
This commit is contained in:
@@ -82,7 +82,11 @@ func Fatal(skip int, format string, v ...interface{}) {
|
||||
func Close() {
|
||||
for _, l := range loggers {
|
||||
l.Close()
|
||||
// delete the logger.
|
||||
l = nil
|
||||
}
|
||||
// clear the loggers slice.
|
||||
loggers = nil
|
||||
}
|
||||
|
||||
// .___ __ _____
|
||||
|
||||
Reference in New Issue
Block a user