From 2ea766a67cee1c1e169fef5bbb0d4e47ba3bad6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 11 Jul 2018 15:15:47 -0400 Subject: [PATCH] Better formatting of exception in logs viewer --- views/logs.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/logs.tpl b/views/logs.tpl index efa08e7be..ada48b4ce 100644 --- a/views/logs.tpl +++ b/views/logs.tpl @@ -108,7 +108,12 @@ red bug icon \\ $('.log').click(function(){ $("#message").html($(this).data("message")); - $("#exception").html($(this).data("exception")); + exception = $(this).data("exception"); + exception = exception.replace(/'/g,""); + exception = exception.replace(/\\n\s\s\s\s/g, "\\n  "); + exception = exception.replace(/\\n\s\s/g, "\\n "); + exception = exception.replace(/\\n/g, "
") + $("#exception").html(exception); $('#modal').modal('show'); }) \ No newline at end of file