mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
Print golang http errors in MinIO log format (#16465)
This commit is contained in:
+1
-1
@@ -589,7 +589,7 @@ func serverMain(ctx *cli.Context) {
|
||||
UseIdleTimeout(ctx.Duration("idle-timeout")).
|
||||
UseReadHeaderTimeout(ctx.Duration("read-header-timeout")).
|
||||
UseBaseContext(GlobalContext).
|
||||
UseCustomLogger(log.New(io.Discard, "", 0)) // Turn-off random logging by Go stdlib
|
||||
UseCustomLogger(log.New(&goHTTPLogger{}, "", 0))
|
||||
|
||||
go func() {
|
||||
globalHTTPServerErrorCh <- httpServer.Start(GlobalContext)
|
||||
|
||||
Reference in New Issue
Block a user