From 347a51f9d46f8f98f73e53d636601d463956c51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=85=BE=E7=8C=AB=E8=B7=83?= <1043137532@qq.com> Date: Tue, 12 May 2026 12:04:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A9=BA=E6=97=A5=E5=BF=97=E8=A1=8C?= =?UTF-8?q?=E4=BC=9A=E7=BC=BA=E5=A4=B1=E6=97=A5=E5=BF=97=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/General/Logger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/General/Logger.cs b/Shared/General/Logger.cs index d187e9e..f06d946 100644 --- a/Shared/General/Logger.cs +++ b/Shared/General/Logger.cs @@ -213,6 +213,7 @@ public class BaseLogger { /// public virtual string Format(string text, LogLevel level, string filePath, Exception? ex) { string prefix = GetLogPrefix(level, filePath); + if (string.IsNullOrEmpty(text)) return prefix; return text .ReplaceLineEndings("\n", mergeMultiple: true).Split(['\n'], StringSplitOptions.RemoveEmptyEntries) .Select(t => prefix + t)