aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/api/errors.go7
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)
+}