From ce06570263df007146d30f7966923362c45eeffb Mon Sep 17 00:00:00 2001 From: jdesprez Date: Wed, 16 Aug 2017 14:13:15 -0700 Subject: Add a log for the concurrent flash limit Ensure we always log the current flash limit and the current waiting queue size. Test: unit tests Bug: 63930794 Change-Id: Id51186a1c28833e373535da3726012334fc165e9 --- src/com/android/tradefed/targetprep/DeviceFlashPreparer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/tradefed/targetprep/DeviceFlashPreparer.java b/src/com/android/tradefed/targetprep/DeviceFlashPreparer.java index f691e702b..0f5b9540e 100644 --- a/src/com/android/tradefed/targetprep/DeviceFlashPreparer.java +++ b/src/com/android/tradefed/targetprep/DeviceFlashPreparer.java @@ -214,7 +214,11 @@ public abstract class DeviceFlashPreparer implements ITargetCleaner { } } } - + CLog.i( + "Requesting a flashing permit out of the host max limit of %s. Current queue " + + "length: %s", + getHostOptions().getConcurrentFlasherLimit(), + sConcurrentFlashLock.getQueueLength()); sConcurrentFlashLock.acquireUninterruptibly(); } -- cgit v1.2.3