Fix webapp build

This commit is contained in:
Kevin Cotugno 2017-09-25 16:47:09 -07:00
parent 46a6316523
commit e013356542
3 changed files with 6 additions and 2 deletions

View File

@ -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
}

View File

@ -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)
}

View File

@ -11,6 +11,8 @@ import (
type TradeHandler struct {
TradeService tacitus.TradeService
logger tacitus.Logger
}
type tradesResponse struct {