Skip to content

Commit

Permalink
Adds verbose logging messages to main.go
Browse files Browse the repository at this point in the history
and updated copyright headers
  • Loading branch information
ma-hartma committed Sep 19, 2020
1 parent f67e941 commit 36136a5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cmd/knoxite/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* knoxite
* Copyright (c) 2016-2020, Christian Muehlhaeuser <muesli@gmail.com>
* Copyright (c) 2020, Nicolas Martin <penguwin@penguwin.eu>
* Copyright (c) 2016-2020, Christian Muehlhaeuser <muesli@gmail.com>
* Copyright (c) 2020, Nicolas Martin <penguwin@penguwin.eu>
* Copyright (c) 2020, Matthias Hartmann <mahartma@mahartma.com>
*
* For license see LICENSE
*/
Expand Down Expand Up @@ -113,20 +114,20 @@ func initConfig() {
}

var err error
//logger.Info("Initialising config with ConfigURL")
logger.Info("Initialising config with ConfigURL")
cfg, err = config.New(globalOpts.ConfigURL)
if err != nil {
log.Fatalf("error reading the config file: %v\n", err)
return
}
//logger.Info("Initialised config")
logger.Info("Initialised config")

//logger.Info("Loading config")
logger.Info("Loading config")
if err = cfg.Load(); err != nil {
log.Fatalf("error loading the config file: %v\n", err)
return
}
//logger.Info("Loaded config")
logger.Info("Loaded config")

// There can occur a panic due to an entry assigment in nil map when theres
// no map initialized to store the RepoConfigs. This will prevent this from
Expand Down

0 comments on commit 36136a5

Please sign in to comment.