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

Commit13e214f

Browse files
authored
feat: add logging to agent yamux session (#11912)
Log yamux errors and warnings in the agent.
1 parentb0a855c commit13e214f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎codersdk/agentsdk/agentsdk.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ func (c *Client) Listen(ctx context.Context) (drpc.Conn, error) {
218218
},
219219
}
220220
config:=yamux.DefaultConfig()
221-
config.LogOutput=io.Discard
221+
config.LogOutput=nil
222+
config.Logger=slog.Stdlib(ctx,c.SDK.Logger(),slog.LevelInfo)
222223
session,err:=yamux.Client(netConn,config)
223224
iferr!=nil {
224225
returnnil,xerrors.Errorf("multiplex client: %w",err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp