tie all loggers to global var
Signed-off-by: Dinifarb <andreas.vogt89@bluewin.ch>
This commit is contained in:
parent
4add010b8d
commit
fdec95bc99
|
@ -48,7 +48,7 @@ var StopCh = make(chan bool)
|
|||
func init() {
|
||||
isService, err := svc.IsWindowsService()
|
||||
if err != nil {
|
||||
logger, err := eventlog.Open("windows_exporter")
|
||||
logger, err = eventlog.Open("windows_exporter")
|
||||
if err != nil {
|
||||
os.Exit(2)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue