Skip to content

feat(run): Add labgrid verbosity options

David Brown requested to merge David.Brown/rules_labgrid:logging into main

Add support to run.py for enabling logging from Labgrid.

With the --log-level argument you can enable different levels (default is ERROR), these can also be controlled by setting a LOG_LEVEL environment variable.

By setting the level to DEBUG, you also turn on additional logging from the Labgrid StepLogger:

INFO         StepLogger:  → SSHDriver.run(cmd='cd /tmp/tmp.HeiAjaLHcj/execroot && /tmp/tmp.HeiAjaLHcj/execroot/env  /tmp/tmp.HeiAjaLHcj/execroot/ls') 
INFO         StepLogger:  ← SSHDriver.run() result=(['env', 'ls', 'ls.runfiles'], [], 0) [0.428s]
Edited by Alex Tercete

Merge request reports