mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
improving logging (#5)
* small refactoring of error messages * (very) small refactoring of structs instantiation * improving logging with debug messages * using INFO level as default + changing previous debug message to info message
This commit is contained in:
7
main.go
7
main.go
@@ -53,8 +53,9 @@ func main() {
|
||||
Handler: r,
|
||||
}
|
||||
|
||||
logger.Infof("Starting Gotenberg version %s", version)
|
||||
logger.Infof("Listening on port %s", config.GetPort())
|
||||
logger.Debugf("configuration loaded from file %s", defaultConfigurationFilePath)
|
||||
logger.Infof("starting Gotenberg version %s", version)
|
||||
logger.Infof("listening on port %s", config.GetPort())
|
||||
|
||||
// runs our server in a goroutine so that it doesn't block.
|
||||
go func() {
|
||||
@@ -83,6 +84,6 @@ func main() {
|
||||
s.Shutdown(ctx)
|
||||
|
||||
logger.SetLevel(logrus.InfoLevel)
|
||||
logger.Info("Bye!")
|
||||
logger.Info("bye!")
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user