From 100b92036bd6e097f50f15ab57f39f1343997860 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 17 Jul 2023 16:59:40 -0400 Subject: [PATCH] use html line breaks in error log notifications --- Oqtane.Server/Infrastructure/LogManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Infrastructure/LogManager.cs b/Oqtane.Server/Infrastructure/LogManager.cs index 900f5e91..27d4df50 100644 --- a/Oqtane.Server/Infrastructure/LogManager.cs +++ b/Oqtane.Server/Infrastructure/LogManager.cs @@ -210,7 +210,7 @@ namespace Oqtane.Infrastructure { var subject = $"{alias.Name} Site {log.Level} Notification"; var url = $"{_accessor.HttpContext.Request.Scheme}://{alias.Name}/admin/log?id={log.LogId}"; - string body = $"Log Message: {log.Message}\n\nPlease visit {url} for more information"; + string body = $"Log Message: {log.Message}

Please visit {url} for more information"; var notification = new Notification(log.SiteId.Value, userrole.User, subject, body); _notifications.AddNotification(notification); }