From 2458c01b0d2a081e52e1f15ee00eac46d540ebf1 Mon Sep 17 00:00:00 2001 From: LeZi9916 Date: Fri, 7 Feb 2025 17:16:23 +0800 Subject: [PATCH] fix --- Assets/Scripts/Utils/MajDebug.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Utils/MajDebug.cs b/Assets/Scripts/Utils/MajDebug.cs index 9462820a..d15f00bd 100644 --- a/Assets/Scripts/Utils/MajDebug.cs +++ b/Assets/Scripts/Utils/MajDebug.cs @@ -20,7 +20,7 @@ static MajDebug() _unityLogger = Debug.unityLogger; LogWriteback(); -#if !UNITY_EDITOR +#if !(UNITY_EDITOR || DEBUG) Application.logMessageReceivedThreaded += (string condition, string stackTrace, LogType type) => { MajDebug.Log($"{condition}\n{stackTrace}", type);