Skip to content

Commit

Permalink
remove spurious sysouts
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Aug 21, 2021
1 parent 77f35e9 commit 8db85c9
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,21 +287,15 @@ public boolean detachAppender(String name) {

class Worker extends Thread {

int spinCount = 0;

public void run() {
AsyncAppenderBase<E> parent = AsyncAppenderBase.this;
AppenderAttachableImpl<E> aai = parent.aai;

// loop while the parent is started
while (parent.isStarted()) {
try {
E e0 = parent.blockingQueue.take();
spinCount++;
if((spinCount & 0x0FFF) == 0)
System.out.println("spinCount="
+ ""+spinCount);
List<E> elements = new ArrayList<E>();
E e0 = parent.blockingQueue.take();
elements.add(e0);
parent.blockingQueue.drainTo(elements);
for (E e : elements) {
Expand Down

0 comments on commit 8db85c9

Please sign in to comment.