Send deployment id and minio version in http header (#14378)

This commit is contained in:
Shireesh Anjal
2022-02-24 03:06:01 +05:30
committed by GitHub
parent 27f64dd9a4
commit 25144fedd5
7 changed files with 34 additions and 12 deletions

View File

@@ -161,7 +161,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
signal.Notify(globalOSSignalCh, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
// This is only to uniquely identify each gateway deployments.
globalDeploymentID = env.Get("MINIO_GATEWAY_DEPLOYMENT_ID", mustGetUUID())
logger.SetDeploymentID(globalDeploymentID)
xhttp.SetDeploymentID(globalDeploymentID)
if gw == nil {
logger.FatalIf(errUnexpected, "Gateway implementation not initialized")