Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
9fb10b35
Commit
9fb10b35
authored
Dec 19, 2018
by
Sietse Ringers
Browse files
Pass logger to irma package
parent
fcc1b59b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/backend/api.go
View file @
9fb10b35
...
...
@@ -25,6 +25,7 @@ func Initialize(configuration *server.Configuration) error {
conf
.
Logger
.
Formatter
=
&
logrus
.
TextFormatter
{}
}
server
.
Logger
=
conf
.
Logger
irma
.
Logger
=
conf
.
Logger
if
conf
.
IrmaConfiguration
==
nil
{
var
err
error
...
...
@@ -36,7 +37,6 @@ func Initialize(configuration *server.Configuration) error {
return
err
}
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
{
return
err
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment