From 28ad3d86ecd2ed6212ec4febd0bb90bd55c152c3 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 15 Mar 2025 09:48:58 +0800 Subject: debug: only run hooks that is for debug purposes in debug builds log: only log TRACE in debug builds --- src/format.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/format.hpp') diff --git a/src/format.hpp b/src/format.hpp index 019f3d6..40e85f3 100644 --- a/src/format.hpp +++ b/src/format.hpp @@ -28,9 +28,11 @@ inline std::string fmt(eFormatType type, std::string str) { case SYS: prefix = "[SYSTEM] "; break; +#ifdef DEBUG case TRACE: prefix = "[DEBUG] "; break; +#endif default: prefix = ""; break; -- cgit v1.2.3