forked from TrueCloudLab/distribution
fix: rename log to logrus
Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
This commit is contained in:
parent
f0fdaff0a5
commit
99a8ad00ea
1 changed files with 3 additions and 4 deletions
|
@ -110,7 +110,6 @@ var ServeCmd = &cobra.Command{
|
|||
if err = registry.ListenAndServe(); err != nil {
|
||||
logrus.Fatalln(err)
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -305,9 +304,9 @@ func (registry *Registry) ListenAndServe() error {
|
|||
func configureDebugServer(config *configuration.Configuration) {
|
||||
if config.HTTP.Debug.Addr != "" {
|
||||
go func(addr string) {
|
||||
log.Infof("debug server listening %v", addr)
|
||||
logrus.Infof("debug server listening %v", addr)
|
||||
if err := http.ListenAndServe(addr, nil); err != nil {
|
||||
log.Fatalf("error listening on debug interface: %v", err)
|
||||
logrus.Fatalf("error listening on debug interface: %v", err)
|
||||
}
|
||||
}(config.HTTP.Debug.Addr)
|
||||
configurePrometheus(config)
|
||||
|
@ -320,7 +319,7 @@ func configurePrometheus(config *configuration.Configuration) {
|
|||
if path == "" {
|
||||
path = "/metrics"
|
||||
}
|
||||
log.Info("providing prometheus metrics on ", path)
|
||||
logrus.Info("providing prometheus metrics on ", path)
|
||||
http.Handle(path, metrics.Handler())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue