1
0

Logger refactoring (#90)

This commit is contained in:
konrad
2019-07-20 18:12:10 +00:00
committed by Gitea
parent 15a0963bd1
commit 48826a6ed7
17 changed files with 124 additions and 56 deletions

View File

@ -72,7 +72,7 @@ func initialize() {
// Set Engine
err := models.SetEngine()
if err != nil {
log.Log.Fatal(err.Error())
log.Fatal(err.Error())
}
// Start the mail daemon

View File

@ -62,7 +62,7 @@ var webCmd = &cobra.Command{
<-quit
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
log.Log.Infof("Shutting down...")
log.Infof("Shutting down...")
if err := e.Shutdown(ctx); err != nil {
e.Logger.Fatal(err)
}