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)
| 65 | // of the runtime admin and user opt-in settings. This is used for the |
| 66 | // deployment-level serpent flag. |
| 67 | func 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 |
no outgoing calls