Use logger not printf

This commit is contained in:
Owen
2026-06-04 16:57:51 -07:00
parent 0beee679ca
commit 3ef2550687
11 changed files with 75 additions and 78 deletions
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"context"
"encoding/json"
"fmt"
"log"
"github.com/coder/websocket"
"github.com/fosrl/newt/logger"
"github.com/fosrl/newt/nativessh"
)
@@ -36,7 +36,7 @@ func serveNativeSSHSession(ctx context.Context, ws *websocket.Conn, username str
return fmt.Errorf("auth for user %q: %w", username, err)
}
log.Printf("SSH native: spawning shell as user %q", username)
logger.Debug("SSH native: spawning shell as user %q", username)
sess, err := nativessh.NewPTYSessionAs(username)
if err != nil {