feat: endpoint type log

This commit is contained in:
Seefs
2025-10-13 22:25:39 +08:00
parent 384cba92cf
commit 2624c48113
7 changed files with 83 additions and 19 deletions

View File

@@ -299,6 +299,10 @@ func processChannelError(c *gin.Context, channelError types.ChannelError, err *t
userGroup := c.GetString("group")
channelId := c.GetInt("channel_id")
other := make(map[string]interface{})
relayFormat := common.GetContextKeyString(c, constant.ContextKeyRelayFormat)
if relayFormat != "" {
other["relay_format"] = relayFormat
}
other["error_type"] = err.GetErrorType()
other["error_code"] = err.GetErrorCode()
other["status_code"] = err.StatusCode