From c319cdbf2e9cb82394b1a5d184b6f48667a9aa3f Mon Sep 17 00:00:00 2001 From: "Xin.Zh" Date: Tue, 25 Jul 2023 18:26:45 +0800 Subject: [PATCH] Revert "Turn off the TRACE output by default (#1808)" (#1814) This reverts commit f104cda7468ed65d23a721b9ca9e97942cf67a7f. --- src/storage/src/debug.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/storage/src/debug.h b/src/storage/src/debug.h index 81fa513a3a..fe78c14695 100644 --- a/src/storage/src/debug.h +++ b/src/storage/src/debug.h @@ -7,15 +7,11 @@ #define SRC_DEBUG_H_ #ifndef NDEBUG +# define TRACE(M, ...) fprintf(stderr, "[TRACE] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) # define DEBUG(M, ...) fprintf(stderr, "[Debug] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) #else +# define TRACE(M, ...) {} # define DEBUG(M, ...) {} #endif // NDEBUG -#ifdef TRACE_ON -# define TRACE(M, ...) fprintf(stderr, "[TRACE] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) -#else -# define TRACE(M, ...) {} -#endif - #endif // SRC_DEBUG_H_