Commit 9fb10b35 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Pass logger to irma package

parent fcc1b59b
...@@ -25,6 +25,7 @@ func Initialize(configuration *server.Configuration) error { ...@@ -25,6 +25,7 @@ func Initialize(configuration *server.Configuration) error {
conf.Logger.Formatter = &logrus.TextFormatter{} conf.Logger.Formatter = &logrus.TextFormatter{}
} }
server.Logger = conf.Logger server.Logger = conf.Logger
irma.Logger = conf.Logger
if conf.IrmaConfiguration == nil { if conf.IrmaConfiguration == nil {
var err error var err error
...@@ -36,7 +37,6 @@ func Initialize(configuration *server.Configuration) error { ...@@ -36,7 +37,6 @@ func Initialize(configuration *server.Configuration) error {
return err return err
} }
if len(conf.IrmaConfiguration.SchemeManagers) == 0 { if len(conf.IrmaConfiguration.SchemeManagers) == 0 {
conf.Logger.Info("No schemes found in irma_configuration, downloading default schemes")
if err := conf.IrmaConfiguration.DownloadDefaultSchemes(); err != nil { if err := conf.IrmaConfiguration.DownloadDefaultSchemes(); err != nil {
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment