diff options
Diffstat (limited to 'cmd/start.go')
-rw-r--r-- | cmd/start.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/start.go b/cmd/start.go index 6bb16a3..fa00786 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -22,9 +22,8 @@ var startCmd = &cobra.Command{ Long: `Start data server`, Run: func(cmd *cobra.Command, args []string) { log := slog.New(slog.NewJSONHandler(os.Stdout, - &slog.HandlerOptions{Level: slog.LevelDebug})) + &slog.HandlerOptions{Level: slog.LevelDebug, AddSource: true})) // load server configuration from server - log.Debug("Loading server configuration") if viper.ConfigFileUsed() != "" { log.Debug("Configuration file loaded", "section", "init", "path", viper.ConfigFileUsed()) @@ -37,7 +36,6 @@ var startCmd = &cobra.Command{ } srv := server.NewServer(cfg, log, db.Conn) // listen for new messages - log.Info("Listening for incoming events") srv.Listen() }, } |