MCPcopy Index your code
hub / github.com/coder/coder / UpdateChatDebugLogging

Method UpdateChatDebugLogging

codersdk/chats.go:2975–2985  ·  view source on GitHub ↗

UpdateChatDebugLogging updates the runtime admin setting that allows users to opt into chat debug logging.

(ctx context.Context, req UpdateChatDebugLoggingAllowUsersRequest)

Source from the content-addressed store, hash-verified

2973// UpdateChatDebugLogging updates the runtime admin setting that allows
2974// users to opt into chat debug logging.
2975func (c *ExperimentalClient) UpdateChatDebugLogging(ctx context.Context, req UpdateChatDebugLoggingAllowUsersRequest) error {
2976 res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/debug-logging", req)
2977 if err != nil {
2978 return err
2979 }
2980 defer res.Body.Close()
2981 if res.StatusCode != http.StatusNoContent {
2982 return ReadBodyAsError(res)
2983 }
2984 return nil
2985}
2986
2987// GetUserChatDebugLogging returns whether chat debug logging is active
2988// for the current user and whether the user may change it.

Callers 1

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 1