(_ context.Context, params *SetLoggingLevelParams)
| 1493 | } |
| 1494 | |
| 1495 | func (ss *ServerSession) setLevel(_ context.Context, params *SetLoggingLevelParams) (*emptyResult, error) { |
| 1496 | ss.updateState(func(state *ServerSessionState) { |
| 1497 | state.LogLevel = params.Level |
| 1498 | }) |
| 1499 | ss.server.opts.Logger.Info("client log level set", "level", params.Level) |
| 1500 | return &emptyResult{}, nil |
| 1501 | } |
| 1502 | |
| 1503 | // Close performs a graceful shutdown of the connection, preventing new |
| 1504 | // requests from being handled, and waiting for ongoing requests to return. |
nothing calls this directly
no test coverage detected