diff options
author | GrailFinder <wohilas@gmail.com> | 2024-06-02 15:00:41 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-06-02 15:00:41 +0300 |
commit | 60fc1773241195f4988ed8066e019bbc42267085 (patch) | |
tree | 91dec5a4e298a8b3eb0870649ed8d5031a685001 /cmd/start.go | |
parent | d0ec9f38b17dadf4c244904e28e064d6ad7c5674 (diff) |
Enha: add db method to list recs
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() }, } |