From a40bbd04863d8d3c3e4b9d305686b64e896868f5 Mon Sep 17 00:00:00 2001
From: William Perron <hey@wperron.io>
Date: Sun, 9 Mar 2025 16:24:43 -0400
Subject: [PATCH] Change level of debug command, add command name to logging

---
 cmd/themis-server/main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/themis-server/main.go b/cmd/themis-server/main.go
index 9c72186..2b39b17 100644
--- a/cmd/themis-server/main.go
+++ b/cmd/themis-server/main.go
@@ -1028,7 +1028,7 @@ func logCommandInvocation(ctx context.Context, name string, s *discordgo.Session
 		}
 	}
 
-	log.Info().Ctx(ctx).Msg("command invoked")
+	log.Info().Ctx(ctx).Str("command", name).Msg("command invoked")
 }
 
 func debugCommandCompletion(ctx context.Context, name string, dur time.Duration, err error, s *discordgo.Session, i *discordgo.InteractionCreate) {
@@ -1036,7 +1036,7 @@ func debugCommandCompletion(ctx context.Context, name string, dur time.Duration,
 	if err != nil {
 		span.SetStatus(codes.Error, err.Error())
 	}
-	log.Info().Ctx(ctx).Dur("latency_ms", dur).Msg("command completed")
+	log.Debug().Ctx(ctx).Str("command", name).Dur("latency_ms", dur).Msg("command completed")
 }
 
 func min(a, b int) int {