Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
Made better use of warn/info/debug levels.
Introduced LogginMiddleware to router.
Removed second logging library from project.
Fixes #53.
  • Loading branch information
fleaz committed May 23, 2020
1 parent 59369ff commit 4a38dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func main() {
log.Warn(err)
continue
}
log.Infof("Loaded block %q (Type %q, Endpoint %q)", blockName, blockConfig.Type, blockConfig.Endpoint)
log.Infof("Loaded block %q from config (Type %q, Endpoint %q)", blockName, blockConfig.Type, blockConfig.Endpoint)
configPath := fmt.Sprintf("modules.%s", blockName)
module.Init(viper.Sub(configPath), &inputChannel)
channelList = append(channelList, module.GetChannelList()...)
Expand Down

3 comments on commit 4a38dc7

@mweinelt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a mismatch between the commit message and what this commit contains.

@mweinelt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you did commit shenanigans. You should feel bad :)

@fleaz
Copy link
Owner Author

@fleaz fleaz commented on 4a38dc7 Jul 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you did commit shenanigans. You should feel bad :)

Somehow this is the commit message from 59369ff not sure what happend here :D

Please sign in to comment.