Skip to content

Commit 3506a7a

Browse files
authored
[SDK] Fix BatchLogRecordProcessor to instrument shutdown (open-telemetry#3262)
1 parent edb8937 commit 3506a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/logs/batch_log_record_processor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void BatchLogRecordProcessor::DoBackgroundWork()
218218
if (synchronization_data_->is_shutdown.load() == true)
219219
{
220220
DrainQueue();
221-
return;
221+
break;
222222
}
223223

224224
auto start = std::chrono::steady_clock::now();

0 commit comments

Comments
 (0)