nostrdb: Only log to stdout if NDB_LOG is defined

Closes: https://github.com/damus-io/nostrdb/pull/64
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Ken Sedgwick
2024-12-30 11:36:06 -08:00
committed by Daniel D’Aquino
parent af5961ce26
commit e6cb6c938b

View File

@@ -17,7 +17,7 @@
//#define DEBUG 1 //#define DEBUG 1
#ifdef DEBUG #ifdef NDB_LOG
#define ndb_debug(...) printf(__VA_ARGS__) #define ndb_debug(...) printf(__VA_ARGS__)
#else #else
#define ndb_debug(...) (void)0 #define ndb_debug(...) (void)0