From 60fc1773241195f4988ed8066e019bbc42267085 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 2 Jun 2024 15:00:41 +0300 Subject: Enha: add db method to list recs --- cmd/start.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd/start.go') 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() }, } -- cgit v1.2.3