Skip to content

Commit d9a2104

Browse files
committed
Try removing these again.
1 parent 3efa8dc commit d9a2104

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

logging/telemetryhook.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,13 @@ func createAsyncHook(wrappedHook logrus.Hook, channelDepth uint, maxQueueDepth i
3333
}
3434

3535
func createAsyncHookLevels(wrappedHook logrus.Hook, channelDepth uint, maxQueueDepth int, levels []logrus.Level) *asyncTelemetryHook {
36-
// one time check to see if the wrappedHook is ready (true for mocked telemetry)
37-
tfh, ok := wrappedHook.(*telemetryFilteredHook)
38-
ready := ok && tfh.wrappedHook != nil
39-
4036
hook := &asyncTelemetryHook{
4137
wrappedHook: wrappedHook,
4238
entries: make(chan *logrus.Entry, channelDepth),
4339
quit: make(chan struct{}),
4440
maxQueueDepth: maxQueueDepth,
4541
levels: levels,
46-
ready: ready,
42+
ready: false,
4743
urlUpdate: make(chan bool),
4844
}
4945

0 commit comments

Comments
 (0)