From 4fc95ae17d6f328bb255b92ba3b3db0afa23bd66 Mon Sep 17 00:00:00 2001 From: Minio Trusted Date: Tue, 8 Jun 2021 16:24:50 -0700 Subject: [PATCH] remove the shotfile source line --- restapi/logs.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/restapi/logs.go b/restapi/logs.go index 54ae1f845..8222ec552 100644 --- a/restapi/logs.go +++ b/restapi/logs.go @@ -25,8 +25,8 @@ import ( "github.com/minio/cli" ) -var infoLog = log.New(os.Stdout, "I: ", log.LstdFlags|log.Lshortfile) -var errorLog = log.New(os.Stdout, "E: ", log.LstdFlags|log.Lshortfile) +var infoLog = log.New(os.Stdout, "I: ", log.LstdFlags) +var errorLog = log.New(os.Stdout, "E: ", log.LstdFlags) func logInfo(msg string, data ...interface{}) { infoLog.Printf(msg+"\n", data...) @@ -36,6 +36,7 @@ func logError(msg string, data ...interface{}) { errorLog.Printf(msg+"\n", data...) } +// globally changeable logger styles var ( LogInfo = logInfo LogError = logError @@ -50,6 +51,7 @@ type Context struct { TLSCertificate, TLSKey, TLSca string } +// Load loads restapi Context from command line context. func (c *Context) Load(ctx *cli.Context) error { *c = Context{ Host: ctx.String("host"),