@@ -31,21 +31,19 @@ func NewJetbrainsChannelWatcher(ctx ssh.Context, logger slog.Logger, newChannel
31
31
d := localForwardChannelData {}
32
32
if err := gossh .Unmarshal (newChannel .ExtraData (),& d );err != nil {
33
33
// If the data fails to unmarshal, do nothing.
34
+ logger .Warn (ctx ,"failed to unmarshal port forward data" ,slog .Error (err ))
34
35
return newChannel
35
36
}
36
37
37
38
// If we do get a port, we should be able to get the matching PID and from
38
39
// there look up the invocation.
39
40
cmdline ,err := getListeningPortProcessCmdline (d .DestPort )
40
41
if err != nil {
41
- logger .Warn (ctx ,"port inspection failed " ,
42
+ logger .Warn (ctx ,"failed to inspect port " ,
42
43
slog .F ("destination_port" ,d .DestPort ),
43
44
slog .Error (err ))
44
45
return newChannel
45
46
}
46
- logger .Debug (ctx ,"checking forwarded process" ,
47
- slog .F ("cmdline" ,cmdline ),
48
- slog .F ("destination_port" ,d .DestPort ))
49
47
50
48
// If this is not JetBrains, then we do not need to do anything special. We
51
49
// attempt to match on something that appears unique to JetBrains software and