This commit is contained in:
lbenedar
2026-03-19 13:44:50 +03:00
parent 5cc1196085
commit b8fff8f7d5
4 changed files with 112 additions and 8 deletions

View File

@@ -6,7 +6,10 @@ import (
)
func (app *application) logError(r *http.Request, err error) {
app.logger.Print(err)
app.logger.PrintError(err, map[string]string{
"request_method": r.Method,
"request_url": r.URL.String(),
})
}
func (app *application) errorResponse(w http.ResponseWriter, r *http.Request, status int, message any) {