Skip to content

Commit

Permalink
Merge branch '173-python-logger-json-is-not-pretty' into 'develop'
Browse files Browse the repository at this point in the history
Resolve "python logger json is not pretty"

Closes #173

See merge request EM-Plasma/BuildScripts!221
  • Loading branch information
Matthew Scot Swan committed Sep 26, 2019
2 parents 04c262f + 6a51733 commit 336328a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def finalize(self):
json_file = os.path.join(self.strm_dir, json_file)

with open(json_file, 'w') as jf:
json.dump(self, jf, cls=LoggerEncoder)
json.dump(self, jf, cls=LoggerEncoder, sort_keys=True, indent=4)

# Create a script in the strm_dir that makes it easy to recreate
# the HTML file for that specific timestamp.
Expand Down

0 comments on commit 336328a

Please sign in to comment.