Skip to content
GitLab
Menu
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
51ea4f7b
Commit
51ea4f7b
authored
Mar 10, 2019
by
Sietse Ringers
Browse files
irma server now logs its mode (development/production) when starting
parent
28f39a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/irmad/cmd/root.go
View file @
51ea4f7b
...
...
@@ -166,8 +166,12 @@ func configure(cmd *cobra.Command) error {
logger
.
Out
=
ioutil
.
Discard
}
logger
.
Debug
(
"Configuring"
)
logger
.
Debug
(
"Log level: "
,
logger
.
Level
.
String
())
mode
:=
"development"
if
viper
.
GetBool
(
"production"
)
{
mode
=
"production"
}
logger
.
WithField
(
"mode"
,
mode
)
.
WithField
(
"verbosity"
,
server
.
Verbosity
(
viper
.
GetInt
(
"verbose"
)))
.
Info
(
"irma server running"
)
if
err
!=
nil
{
if
_
,
notfound
:=
err
.
(
viper
.
ConfigFileNotFoundError
);
notfound
{
logger
.
Info
(
"No configuration file found"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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