Skip to content

Commit

Permalink
use logrus.Logger
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jul 6, 2023
1 parent df45213 commit bb8192d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func startHttp(l *logrus.Logger, c *config.C, buildVersion string, configTest bo
// TODO: remove this in future releases. Fallback to stats.listen for
// backwards-compatibility if http.listen is undef.
if statsListen := c.GetString("stats.listen", ""); statsListen != "" {
log.Warn("http.listen is undefined, falling back to stats.listen. stats.listen will be removed in future releases.")
l.Warn("http.listen is undefined, falling back to stats.listen. stats.listen will be removed in future releases.")
listen = statsListen
} else {
return nil, fmt.Errorf("http.listen should not be empty")
Expand Down
1 change: 0 additions & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func startStats(l *logrus.Logger, c *config.C, buildVersion string, configTest b
return nil, err
}
case "prometheus":
var err error
handler, err = startPrometheusStats(l, interval, c, buildVersion, configTest)
if err != nil {
return nil, err
Expand Down

0 comments on commit bb8192d

Please sign in to comment.