Skip to content

Commit

Permalink
simplify print command
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Aug 20, 2024
1 parent 35bcf1d commit 04b0f4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python_testing/TC_DeviceBasicComposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,10 @@ def test_TC_IDM_12_1(self):

# Structured dump so we can pull these back out of the logs
def log_structured_data(start_tag: str, dump_string):
lines = dump_string.splitlines(keepends=True)
lines = dump_string.splitlines()
logging.info(f'{start_tag}BEGIN ({len(lines)} lines)====')
logging.info(f'{start_tag}{start_tag.join(lines)}')
for line in lines:
logging.info(f'{start_tag}{line}')
logging.info(f'{start_tag}END ====')

log_structured_data('==== json: ', json_str)
Expand Down

0 comments on commit 04b0f4b

Please sign in to comment.