From e013356542f2e27a9fb049d1b45cd12000e6e43b Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 25 Sep 2017 16:47:09 -0700 Subject: [PATCH] Fix webapp build --- http/mux.go | 4 +++- http/server.go | 2 +- http/trade_handler.go | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/http/mux.go b/http/mux.go index 3490e35..eb367ac 100644 --- a/http/mux.go +++ b/http/mux.go @@ -1,6 +1,8 @@ package http import ( + "github.com/kcotugno/tacitus" + "net/http" ) @@ -23,5 +25,5 @@ func NewMux() *Mux { } func (m *Mux) SetLogger(logger tacitus.Logger) { - m.TradeHandler.Logger = logger + m.TradeHandler.logger = logger } diff --git a/http/server.go b/http/server.go index 00a0856..ec2790c 100644 --- a/http/server.go +++ b/http/server.go @@ -49,5 +49,5 @@ func (s *Server) Close() { func (s *Server) SetLogger(logger tacitus.Logger) { s.logger = logger - s.Handler.Logger = logger + s.Handler.SetLogger(logger) } diff --git a/http/trade_handler.go b/http/trade_handler.go index e18b020..ffacb2e 100644 --- a/http/trade_handler.go +++ b/http/trade_handler.go @@ -11,6 +11,8 @@ import ( type TradeHandler struct { TradeService tacitus.TradeService + + logger tacitus.Logger } type tradesResponse struct {