We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543479c commit 619f1eeCopy full SHA for 619f1ee
1 file changed
protocol/logger/job_logger.go
@@ -157,14 +157,17 @@ func (logger *WebsocketLiveloggerWithFallback) Initialize() {
157
158
type errorLogger struct{}
159
160
+// ErrMissingLoggerConnection is returned when a log is sent without an active logger connection.
161
+var ErrMissingLoggerConnection = errors.New("missing logger connection")
162
+
163
// Close implements [LiveLogger].
164
func (e *errorLogger) Close() error {
165
return nil
166
}
167
168
// SendLog implements [LiveLogger].
169
func (e *errorLogger) SendLog(lines *protocol.TimelineRecordFeedLinesWrapper) error {
- return errors.New("missing Logger Connection")
170
+ return ErrMissingLoggerConnection
171
172
173
func makePointer[T any](p T) *T {
0 commit comments