update debug log locations

This commit is contained in:
Henry Dollman
2024-10-16 18:12:43 -04:00
parent 1a3ad04e03
commit ee92e338cb
3 changed files with 3 additions and 7 deletions

View File

@@ -25,7 +25,6 @@ func (a *Agent) startServer(pubKey []byte, addr string) {
func (a *Agent) handleSession(s sshServer.Session) {
stats := a.gatherStats()
slog.Debug("Sending stats", "data", stats)
if err := json.NewEncoder(s).Encode(stats); err != nil {
slog.Error("Error encoding stats", "err", err)
s.Exit(1)