mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Cleanup stack trace in error logs (#6045)
Add compile time GOROOT path to the list of prefix of file paths to be removed. Add webhandler function names to the slice that stores function names to terminate logging.
This commit is contained in:
@@ -33,6 +33,7 @@ func genLDFlags(version string) string {
|
||||
ldflagsStr += " -X github.com/minio/minio/cmd.CommitID=" + commitID()
|
||||
ldflagsStr += " -X github.com/minio/minio/cmd.ShortCommitID=" + commitID()[:12]
|
||||
ldflagsStr += " -X github.com/minio/minio/cmd.GOPATH=" + os.Getenv("GOPATH")
|
||||
ldflagsStr += " -X github.com/minio/minio/cmd.GOROOT=" + os.Getenv("GOROOT")
|
||||
return ldflagsStr
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user