1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add markdown rendering for log mesages

This commit is contained in:
Jeremy Stretch
2019-08-14 14:38:11 -04:00
parent 434e656e27
commit f8326ef6df
3 changed files with 5 additions and 2 deletions

View File

@ -269,7 +269,7 @@ def run_script(script, data, commit=True):
except Exception as e:
stacktrace = traceback.format_exc()
script.log_failure(
"An exception occurred. {}: {}\n```{}```".format(type(e).__name__, e, stacktrace)
"An exception occurred: `{}: {}`\n```\n{}\n```".format(type(e).__name__, e, stacktrace)
)
commit = False
finally: