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

Function WithAlwaysEnable

coderd/x/chatd/chatdebug/service.go:67–71  ·  view source on GitHub ↗

WithAlwaysEnable forces debug logging on for every chat regardless of the runtime admin and user opt-in settings. This is used for the deployment-level serpent flag.

(always bool)

Source from the content-addressed store, hash-verified

65// of the runtime admin and user opt-in settings. This is used for the
66// deployment-level serpent flag.
67func WithAlwaysEnable(always bool) ServiceOption {
68 return func(s *Service) {
69 s.alwaysEnable = always
70 }
71}
72
73// WithClock overrides the default real clock. Tests inject
74// quartz.NewMock(t) to control time-dependent behavior such as

Callers 2

NewFunction · 0.92

Calls

no outgoing calls

Tested by 1