Skip to content

Commit 0986854

Browse files
committed
Log any command output from eAPI
1 parent a6db7e8 commit 0986854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pytest_netdut/wrappers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ def sendcmds(self, cmds, timeout=None, translate=True):
185185
data = self._conn.execute(_splitcmds(cmds))["result"]
186186

187187
if self.translator and translate:
188-
return [self.translator.json(item) for item in data]
188+
data = [self.translator.json(item) for item in data]
189189

190+
if any(data):
191+
logging.info(pprint.pformat(data))
190192
return data
191193

192194

0 commit comments

Comments
 (0)