Add log at startup
This commit is contained in:
parent
f3ef9b6675
commit
80cc996fd6
1 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,11 @@ func updateLogger() error {
|
|||
|
||||
func main() {
|
||||
defer log.Flush()
|
||||
updateLogger()
|
||||
err := updateLogger()
|
||||
if err != nil {
|
||||
log.Error("Error loading the logger xml: ", err)
|
||||
}
|
||||
log.Info("Start the imperial library of trantor")
|
||||
|
||||
db := initDB()
|
||||
defer db.Close()
|
||||
|
|
Reference in a new issue