Version bump; remove logging

This commit is contained in:
Daniel J. Summers 2018-05-27 19:46:55 -05:00
parent 6424cde1b6
commit 650bda6bc5
2 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,6 @@ import (
"github.com/auth0/go-jwt-middleware" "github.com/auth0/go-jwt-middleware"
jwt "github.com/dgrijalva/jwt-go" jwt "github.com/dgrijalva/jwt-go"
"github.com/go-ozzo/ozzo-routing" "github.com/go-ozzo/ozzo-routing"
"github.com/go-ozzo/ozzo-routing/access"
"github.com/go-ozzo/ozzo-routing/fault" "github.com/go-ozzo/ozzo-routing/fault"
) )
@ -108,10 +107,7 @@ func authMiddleware(c *routing.Context) error {
func NewRouter(cfg *AuthConfig) *routing.Router { func NewRouter(cfg *AuthConfig) *routing.Router {
authCfg = cfg authCfg = cfg
router := routing.New() router := routing.New()
router.Use( router.Use(fault.Recovery(log.Printf))
access.Logger(log.Printf), // TODO: remove before go-live
fault.Recovery(log.Printf),
)
for _, route := range routes { for _, route := range routes {
if route.IsPublic { if route.IsPublic {
router.To(route.Method, route.Pattern, route.Func) router.To(route.Method, route.Pattern, route.Func)

View File

@ -1,6 +1,6 @@
{ {
"name": "my-prayer-journal", "name": "my-prayer-journal",
"version": "0.9.3", "version": "0.9.5",
"description": "myPrayerJournal - Front End", "description": "myPrayerJournal - Front End",
"author": "Daniel J. Summers <daniel@bitbadger.solutions>", "author": "Daniel J. Summers <daniel@bitbadger.solutions>",
"private": true, "private": true,