-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent cpu wastage when not logging to file (#3508)
* #3506 prevent processor wastage when not logging to file. Only start pump thread if logging to file. Store into queue only if logging to file. * add logToFile to the pumps loop condition to stop looping if logToFile is set to false. * draining pendingRecords if the pump gets disabled. reusing the draining code for the log method. * initialize collection to drain to with the correct size * Adding call to flush() after draining pending records.
- Loading branch information
1 parent
c3c1aaf
commit 934df64
Showing
1 changed file
with
83 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters