mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add logging to agent yamux session (#11912)
Log yamux errors and warnings in the agent.
This commit is contained in:
@@ -218,7 +218,8 @@ func (c *Client) Listen(ctx context.Context) (drpc.Conn, error) {
|
||||
},
|
||||
}
|
||||
config := yamux.DefaultConfig()
|
||||
config.LogOutput = io.Discard
|
||||
config.LogOutput = nil
|
||||
config.Logger = slog.Stdlib(ctx, c.SDK.Logger(), slog.LevelInfo)
|
||||
session, err := yamux.Client(netConn, config)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("multiplex client: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user