summaryrefslogtreecommitdiff
path: root/src/format.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-15 09:48:58 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:45:01 +0800
commit28ad3d86ecd2ed6212ec4febd0bb90bd55c152c3 (patch)
tree3bd8cf8509ef9742b5ce3938fea702de5365ee7d /src/format.hpp
parent649965ec50eb2028c08a8cb6bfa77a62891f1797 (diff)
debug: only run hooks that is for debug purposes in debug builds
log: only log TRACE in debug builds
Diffstat (limited to 'src/format.hpp')
-rw-r--r--src/format.hpp2
1 files changed, 2 insertions, 0 deletions
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;