Skip to content

Commit 0e7c1fa

Browse files
committed
chore: allow trace logs in develop build only
Signed-off-by: Daeyeon Jeong <[email protected]>
1 parent d715c1a commit 0e7c1fa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

deps/message-port/nd/gc-util.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#define CLR_MAGENTA "\033[0;35m"
2424
#define TRACE_GC_START(fmt, ...) TRACEF0(GC, "GC" fmt, ##__VA_ARGS__)
2525
#define TRACE_GC_END(fmt, ...) TRACEF0(GC, "/GC" fmt, ##__VA_ARGS__)
26-
#ifdef ENABLE_TRACE
27-
#define ENABLE_TRACE_GC
28-
#endif
2926

3027
using namespace Escargot;
3128

@@ -35,7 +32,9 @@ using namespace Escargot;
3532

3633
// --- GCTracer ---
3734

35+
#ifdef ENABLE_TRACE_GC
3836
GCTracer MemoryUtil::tracer;
37+
#endif
3938

4039
#define GC_DEREF_OFFSET 1
4140
#define TO_FAKEPTR(gcPtr) ((void*)((size_t)gcPtr + GC_DEREF_OFFSET))

deps/message-port/nd/nd-logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ enum LOG_PRIORITY {
5151

5252
// TRACE -----------------------------------------------------------------------
5353

54-
#if !defined(NDEBUG) || defined(DEV)
54+
#if defined(DEV)
5555
#define ENABLE_TRACE
5656
#endif
5757

0 commit comments

Comments
 (0)