mirror of
https://github.com/openziti/ziti.git
synced 2026-10-23 20:26:05 +00:00
Merge pull request #4412 from openziti/fix.4410.responder-code-method-value
Log the REST error responder's application code, not a method value
This commit is contained in:
@@ -716,6 +716,7 @@ Thanks to the community members who contributed to this release.
|
||||
|
||||
* github.com/openziti/xweb/v3: [v3.0.4 -> v3.0.5](https://github.com/openziti/xweb/compare/v3.0.4...v3.0.5)
|
||||
* github.com/openziti/ziti/v2: [v2.0.0 -> v2.1.0](https://github.com/openziti/ziti/compare/v2.0.0...v2.1.0)
|
||||
* [Issue #4410](https://github.com/openziti/ziti/issues/4410) - REST error responder logs ApiError.Code as a method value
|
||||
* [Issue #4184](https://github.com/openziti/ziti/issues/4184) - Router leaks LinkSendBuffer goroutines in `drainDeadlines()` — circuits accumulate until the router OOMs
|
||||
* [Issue #4278](https://github.com/openziti/ziti/issues/4278) - fabric inspect data-model-index doesn't move for writes outside the router data model
|
||||
* [Issue #4196](https://github.com/openziti/ziti/issues/4196) - Router control-channel connect/disconnect race can leave a reconnected router de-registered
|
||||
|
||||
@@ -55,7 +55,7 @@ func (self EdgeResponseMapper) MapApiError(requestId string, apiError *errorz.Ap
|
||||
}
|
||||
|
||||
func (self EdgeResponseMapper) toRestModel(e *errorz.ApiError, requestId string) *rest_model.APIError {
|
||||
pfxlog.Logger().WithError(e).WithField("code", e.Code).Debug("returning error to REST API")
|
||||
pfxlog.Logger().WithError(e).WithField("code", e.AppCode).Debug("returning error to REST API")
|
||||
ret := &rest_model.APIError{
|
||||
Args: nil,
|
||||
Code: e.AppCode,
|
||||
|
||||
Reference in New Issue
Block a user