mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
opid add
This commit is contained in:
parent
82c79bd91c
commit
8d1dd92df7
@ -147,13 +147,13 @@ func MinioStorageCredential(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
li, err := cr.NewSTSAssumeRole(endpoint, stsOpts)
|
li, err := cr.NewSTSAssumeRole(endpoint, stsOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("", utils.GetSelfFuncName(), "NewSTSAssumeRole failed", err.Error(), stsOpts, config.Config.Credential.Minio.Endpoint)
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "NewSTSAssumeRole failed", err.Error(), stsOpts, config.Config.Credential.Minio.Endpoint)
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
v, err := li.Get()
|
v, err := li.Get()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError("0", utils.GetSelfFuncName(), "li.Get error", err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "li.Get error", err.Error())
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user