Commit 51ea4f7b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

irma server now logs its mode (development/production) when starting

parent 28f39a1a
......@@ -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")
......
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