fix: adminTrace show any errors when server is shutdown. (#10370)

master
飞雪无情 4 years ago committed by GitHub
parent e730da1438
commit 2d96940826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/madmin/service-commands.go

@ -95,6 +95,7 @@ func (adm AdminClient) ServiceTrace(ctx context.Context, allTrace, errTrace bool
resp, err := adm.executeMethod(ctx, http.MethodGet, reqData)
if err != nil {
closeResponse(resp)
traceInfoCh <- ServiceTraceInfo{Err: err}
return
}

Loading…
Cancel
Save