Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4d65478

Browse files
committed
Log unmarshal failure
1 parent6e8f235 commit4d65478

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎agent/agentssh/jetbrainstrack.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,19 @@ func NewJetbrainsChannelWatcher(ctx ssh.Context, logger slog.Logger, newChannel
3131
d:=localForwardChannelData{}
3232
iferr:=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
returnnewChannel
3536
}
3637

3738
// If we do get a port, we should be able to get the matching PID and from
3839
// there look up the invocation.
3940
cmdline,err:=getListeningPortProcessCmdline(d.DestPort)
4041
iferr!=nil {
41-
logger.Warn(ctx,"port inspection failed",
42+
logger.Warn(ctx,"failed to inspect port",
4243
slog.F("destination_port",d.DestPort),
4344
slog.Error(err))
4445
returnnewChannel
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)

[8]ページ先頭

©2009-2025 Movatter.jp