Skip to content

Commit 4dcd7cb

Browse files
authored
Merge pull request #172 from open-telemetry/main
[SDK] Fix BatchLogRecordProcessor to instrument shutdown (open-telemetry#3262)
2 parents d225c80 + 3506a7a commit 4dcd7cb

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)