Skip to contentSkip to conversation

runqueue: Tweak debug message to make it more readable/diffable

PATCH New Richard Purdie 1 participant 1 message Jul 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqueue: Tweak debug message to make it more readable/diffable

Having this as one huge long line isn't easy to manipulate, split it into multiple lines for ease of debugging issues.

---
 lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/runqueue.py +1 -1
index 7dd964d..e1a15af 100644
@@ -2372,7 +2372,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
         self.rq.scenequeue_covered = self.scenequeue_covered
         self.rq.scenequeue_notcovered = self.scenequeue_notcovered
 
-        logger.debug(1, 'We can skip tasks %s', sorted(self.rq.scenequeue_covered))
+        logger.debug(1, 'We can skip tasks %s', "\n".join(sorted(self.rq.scenequeue_covered)))
 
         self.rq.state = runQueueRunInit
 
Signature · 1 line
2.7.4