Skip to content

Commit

Permalink
Merge pull request #6 from paradeum-team/kli
Browse files Browse the repository at this point in the history
modify log out
  • Loading branch information
likai1130 authored Feb 24, 2023
2 parents 34752b1 + 72af630 commit 3d0824c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"gorm.io/gorm"
)


func init() {
vd.SetErrorFactory(func(failPath, msg string) error {
return fmt.Errorf(`validation failed: %s %s`, failPath, msg)
Expand Down Expand Up @@ -82,7 +81,7 @@ func (e *Api) GetIdentity() *service.AuthIdentity {

// Error 通常错误数据处理
func (e Api) Error(err error) {
e.Logger.Errorf("API error: %v", err)
e.Logger.Errorf("ApiError: %v", err)
response.Error(e.Context, err)
}

Expand Down

0 comments on commit 3d0824c

Please sign in to comment.