Skip to content

Commit eccd4a1

Browse files
committed
Fix unit NewWriter call
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent 3dab6d6 commit eccd4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit/unit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (u *Unit) runMetricsServer(ctx context.Context, initialized chan<- promethe
241241
EnableOpenMetrics: true,
242242
MaxRequestsInFlight: 10,
243243
ErrorHandling: promhttp.ContinueOnError,
244-
ErrorLog: stdlog.New(logger, "", 0),
244+
ErrorLog: stdlog.New(logger.NewWriter(log.LevelError), "", 0),
245245
},
246246
)
247247

0 commit comments

Comments
 (0)