Skip to content

Commit 63827f7

Browse files
author
Matthew Fisher
committed
fix(sshd): log incoming env request to debug level
1 parent 2a9db63 commit 63827f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/sshd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (s *server) answer(channel ssh.Channel, requests <-chan *ssh.Request, sshCo
194194
case "env":
195195
o := &EnvVar{}
196196
ssh.Unmarshal(req.Payload, o)
197-
fmt.Printf("Key='%s', Value='%s'\n", o.Name, o.Value)
197+
log.Debugf(s.c, "Key='%s', Value='%s'\n", o.Name, o.Value)
198198
req.Reply(true, nil)
199199
case "exec":
200200
clean := cleanExec(req.Payload)

0 commit comments

Comments
 (0)