Skip to content

Commit e79b01c

Browse files
committed
Log unmarshal failure
1 parent 6e8f235 commit e79b01c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

agent/agentssh/jetbrainstrack.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func NewJetbrainsChannelWatcher(ctx ssh.Context, logger slog.Logger, newChannel
3131
d := localForwardChannelData{}
3232
if err := gossh.Unmarshal(newChannel.ExtraData(), &d); err != nil {
3333
// If the data fails to unmarshal, do nothing.
34+
logger.Warn(ctx, "failed to unmarshal port forward data", slog.Error(err))
3435
return newChannel
3536
}
3637

@@ -43,9 +44,6 @@ func NewJetbrainsChannelWatcher(ctx ssh.Context, logger slog.Logger, newChannel
4344
slog.Error(err))
4445
return newChannel
4546
}
46-
logger.Debug(ctx, "checking forwarded process",
47-
slog.F("cmdline", cmdline),
48-
slog.F("destination_port", d.DestPort))
4947

5048
// If this is not JetBrains, then we do not need to do anything special. We
5149
// attempt to match on something that appears unique to JetBrains software and

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy