diff options
author | Louis Vézina <[email protected]> | 2018-07-11 15:15:47 -0400 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2018-07-11 15:15:47 -0400 |
commit | 2ea766a67cee1c1e169fef5bbb0d4e47ba3bad6e (patch) | |
tree | f14fd7b90602ce428cdf311810846f02221477a5 /views | |
parent | a1a1292b41b364bdbe2fa2bce34f62972b1367a5 (diff) | |
download | bazarr-2ea766a67cee1c1e169fef5bbb0d4e47ba3bad6e.tar.gz bazarr-2ea766a67cee1c1e169fef5bbb0d4e47ba3bad6e.zip |
Better formatting of exception in logs viewer
Diffstat (limited to 'views')
-rw-r--r-- | views/logs.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
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, "<br />") + $("#exception").html(exception); $('#modal').modal('show'); }) </script>
\ No newline at end of file |