aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/core/handler.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-12-15 18:55:57 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-12-15 18:55:57 -0800
commit1d8193b892bf63db6b91c66b9d048873bf1bc4cf (patch)
tree4ca54691f7fab88f73f657f005e26d75ae5f0058 /server/core/handler.go
parentc6d9eb361454b70406cf6573b284d5e99ba3a2d2 (diff)
Add logger
Diffstat (limited to 'server/core/handler.go')
-rw-r--r--server/core/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/core/handler.go b/server/core/handler.go
index 809282e..c55cf79 100644
--- a/server/core/handler.go
+++ b/server/core/handler.go
@@ -5,12 +5,12 @@
package core
import (
- "log"
"net/http"
"time"
"github.com/miniflux/miniflux/helper"
"github.com/miniflux/miniflux/locale"
+ "github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/server/middleware"
"github.com/miniflux/miniflux/server/template"
"github.com/miniflux/miniflux/storage"
@@ -34,7 +34,7 @@ type Handler struct {
func (h *Handler) Use(f HandlerFunc) http.Handler {
return h.middleware.WrapFunc(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
defer helper.ExecutionTime(time.Now(), r.URL.Path)
- log.Println(r.Method, r.URL.Path)
+ logger.Debug("[HTTP] %s %s", r.Method, r.URL.Path)
ctx := NewContext(w, r, h.store, h.router)
request := NewRequest(w, r)