Skip to content

Commit 76ed9d0

Browse files
committed
exporter: fix logging message to not print device info
It might happend that the device is not avail and the object is None Signed-off-by: Tobias Binkowski <tobias.binkowski@missinglinkelectronics.com>
1 parent 32d8083 commit 76ed9d0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

labgrid/remote/exporter.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,12 @@ def _stop(self, start_params):
415415
try:
416416
child.wait(2.0)
417417
except subprocess.TimeoutExpired:
418-
self.logger.warning("jtagd for %s still running after SIGTERM",
419-
self.local.device.sys_name)
418+
self.logger.warning("jtagd on port %s still running after SIGTERM",
419+
self.jtagd_port)
420420
child.kill()
421421
child.wait(1.0)
422422

423-
self.logger.info("stopped jtagd for %s on port %s",
424-
self.local.device.sys_name, self.jtagd_port)
423+
self.logger.info("stopped jtagd on port %s", self.jtagd_port)
425424

426425
def _get_params(self):
427426
"""Helper function to return parameters"""

0 commit comments

Comments
 (0)