diff --git a/cmd/root.go b/cmd/root.go index 100c424b..4b73bf91 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -59,6 +59,7 @@ var rootCmd = &cobra.Command{ } func Execute() { + log.Info("----- Starting vDB -----") if err := rootCmd.Execute(); err != nil { log.Fatal(err) os.Exit(1) diff --git a/main.go b/main.go index 27f46ea1..e376b631 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,8 @@ import ( func main() { log.SetFormatter(&log.JSONFormatter{}) - file, err := os.OpenFile("vulcanizedb.log", os.O_CREATE|os.O_WRONLY, 0666) + file, err := os.OpenFile("vulcanizedb.log", + os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) if err == nil { log.SetOutput(file) } else {