-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor error info #409
Comments
|
Now,
log.Error
is everywhere, both inside(service and utils module etc) and outside layer(controller module).Suggest only putting
err = fmt.Errorf("context info: %v", err)
in inside layer, and not puttinglog.Error(err)
.Put
log.Error(err)
in outside layer. In this way it could avoid much redundancy error info.The text was updated successfully, but these errors were encountered: