Skip to content

Commit f0f03f0

Browse files
committed
chore: additional logs for async framework
🔒 Scanned for secrets using gitleaks 8.29.1
1 parent 395a4fb commit f0f03f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

router/batchrouter/handle_async.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ func (brt *Handle) pollAsyncStatus(ctx context.Context) {
313313
for {
314314
select {
315315
case <-ctx.Done():
316+
brt.logger.Infon("pollAsyncStatus stopped", obskit.DestinationType(brt.destType))
316317
return
317318
case <-time.After(brt.pollStatusLoopSleep.Load()):
318319
brt.configSubscriberMu.RLock()
@@ -390,6 +391,7 @@ func (brt *Handle) asyncUploadWorker(ctx context.Context) {
390391
for {
391392
select {
392393
case <-ctx.Done():
394+
brt.logger.Infon("asyncUploadWorker stopped", obskit.DestinationType(brt.destType))
393395
return
394396
case <-time.After(brt.asyncUploadWorkerTimeout.Load()):
395397
brt.configSubscriberMu.RLock()

0 commit comments

Comments
 (0)