mirror of
https://github.com/pgsty/minio.git
synced 2026-07-18 19:50:23 +03:00
Add User-Agent header with MinIO release details in http logs (#7843)
This would allow http log target server to distinguish between log messages across different versions of MinIO deployments.
This commit is contained in:
committed by
Harshavardhana
parent
1cd801b2e9
commit
bbb56739bd
@@ -508,3 +508,16 @@ func lcp(l []string) string {
|
||||
// are equal, min is the answer ("foo" < "foobar").
|
||||
return min
|
||||
}
|
||||
|
||||
// Returns the mode in which MinIO is running
|
||||
func getMinioMode() string {
|
||||
mode := globalMinioModeFS
|
||||
if globalIsDistXL {
|
||||
mode = globalMinioModeDistXL
|
||||
} else if globalIsXL {
|
||||
mode = globalMinioModeXL
|
||||
} else if globalIsGateway {
|
||||
mode = globalMinioModeGatewayPrefix + globalGatewayName
|
||||
}
|
||||
return mode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user