diff options
Diffstat (limited to 'cmd/api/errors.go')
-rw-r--r-- | cmd/api/errors.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/api/errors.go b/cmd/api/errors.go new file mode 100644 index 0000000..77833f3 --- /dev/null +++ b/cmd/api/errors.go @@ -0,0 +1,7 @@ +package main + +import "net/http" + +func (app *application) logError(r http.Request, err error) { + app.logger.Info(err) +} |