From e6cb6c938b158c00e5aeb5ad41ba6eef872ec471 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Mon, 30 Dec 2024 11:36:06 -0800 Subject: [PATCH] nostrdb: Only log to stdout if NDB_LOG is defined Closes: https://github.com/damus-io/nostrdb/pull/64 Signed-off-by: William Casarin --- nostrdb/src/nostrdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/src/nostrdb.h b/nostrdb/src/nostrdb.h index fd01ba81..6cd7f74e 100644 --- a/nostrdb/src/nostrdb.h +++ b/nostrdb/src/nostrdb.h @@ -17,7 +17,7 @@ //#define DEBUG 1 -#ifdef DEBUG +#ifdef NDB_LOG #define ndb_debug(...) printf(__VA_ARGS__) #else #define ndb_debug(...) (void)0