add user-agent for all minio.Client usage (#16619)

This commit is contained in:
Harshavardhana
2023-02-14 13:19:30 -08:00
committed by GitHub
parent 857674c3a0
commit 0c1f8b4e0f
6 changed files with 31 additions and 18 deletions

View File

@@ -753,6 +753,9 @@ func serverMain(ctx *cli.Context) {
})
logger.FatalIf(err, "Unable to initialize MinIO client")
// Add User-Agent to differentiate the requests.
globalMinioClient.SetAppInfo("minio-perf-test", ReleaseTag)
if serverDebugLog {
logger.Info("== DEBUG Mode enabled ==")
logger.Info("Currently set environment settings:")