mirror of https://github.com/prometheus/prometheus
Merge pull request #15371 from bboreham/main-naming
[REFACTOR] Small improvement to top-level namingpull/15447/head
commit
dd1d707e1c
|
@ -1369,10 +1369,12 @@ func main() {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if err := g.Run(); err != nil {
|
func() { // This function exists so the top of the stack is named 'main.main.funcxxx' and not 'oklog'.
|
||||||
logger.Error("Error running goroutines from run.Group", "err", err)
|
if err := g.Run(); err != nil {
|
||||||
os.Exit(1)
|
logger.Error("Fatal error", "err", err)
|
||||||
}
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}()
|
||||||
logger.Info("See you next time!")
|
logger.Info("See you next time!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue