diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-15 09:48:58 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:45:01 +0800 |
| commit | 28ad3d86ecd2ed6212ec4febd0bb90bd55c152c3 (patch) | |
| tree | 3bd8cf8509ef9742b5ce3938fea702de5365ee7d /src/format.hpp | |
| parent | 649965ec50eb2028c08a8cb6bfa77a62891f1797 (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.hpp | 2 |
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; |
