diff --git a/go-vise b/go-vise index 1f47a67..326bdb5 160000 --- a/go-vise +++ b/go-vise @@ -1 +1 @@ -Subproject commit 1f47a674d95380be8c387f410f0342eb72357df5 +Subproject commit 326bdb5018ae81ee493371b56bd4564a8b35da59 diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index eb78919..c9d42ec 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -17,12 +17,14 @@ import ( "git.defalsify.org/vise.git/persist" "git.defalsify.org/vise.git/resource" "git.defalsify.org/vise.git/state" + "git.defalsify.org/vise.git/logging" "git.grassecon.net/urdt/ussd/internal/handlers/server" "git.grassecon.net/urdt/ussd/internal/utils" "gopkg.in/leonelquinteros/gotext.v1" ) var ( + logg = logging.NewVanilla().WithDomain("ussdmenuhandler") scriptDir = path.Join("services", "registration") translationDir = path.Join(scriptDir, "locale") ) @@ -98,10 +100,10 @@ func NewHandlers(appFlags *asm.FlagParser, pe *persist.Persister, userdataStore accountFileHandler: utils.NewAccountFileHandler(userdataStore), accountService: &server.AccountService{}, } - if h.st == nil || h.ca == nil || h.userdataStore == nil || h.flagManager == nil { - //logg.Errorf("have nil for essential value in handler", "state", h.st, "cache", h.ca, "store", h.userdataStore, "flags", h.flagManager) - return nil, fmt.Errorf("have nil for essential value") - } +// if h.st == nil || h.ca == nil || h.userdataStore == nil || h.flagManager == nil { +// logg.Errorf("have nil for essential value in handler", "state", h.st, "cache", h.ca, "store", h.userdataStore, "flags", h.flagManager) +// return nil, fmt.Errorf("have nil for essential value") +// } return h, nil }