From 4a72b8f519de7ad8a80e1dfea18373fa8d42ba54 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 6 Aug 2021 10:32:42 +0200 Subject: [PATCH] Remove unnecessary debugging/benchmark info from eos, channeldb, reputation, tkldb --- src/modules/channeldb.c | 4 +--- src/modules/eos.c | 4 ---- src/modules/reputation.c | 2 +- src/modules/tkldb.c | 4 +--- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/modules/channeldb.c b/src/modules/channeldb.c index 13d72e900..00b62f055 100644 --- a/src/modules/channeldb.c +++ b/src/modules/channeldb.c @@ -27,9 +27,7 @@ ModuleHeader MOD_HEADER = { #define MAGIC_CHANNEL_START 0x11111111 #define MAGIC_CHANNEL_END 0x22222222 -#ifdef DEBUGMODE - #define BENCHMARK -#endif +// #undef BENCHMARK #define WARN_WRITE_ERROR(fname) \ do { \ diff --git a/src/modules/eos.c b/src/modules/eos.c index 157c9f01b..8d9f2d7e1 100644 --- a/src/modules/eos.c +++ b/src/modules/eos.c @@ -65,10 +65,6 @@ CMD_FUNC(cmd_eos) return; client->serv->flags.synced = 1; /* pass it on ^_- */ -#ifdef DEBUGMODE - ircd_log(LOG_ERROR, "[EOSDBG] cmd_eos: got sync from %s (path:%s)", client->name, client->direction->name); - ircd_log(LOG_ERROR, "[EOSDBG] cmd_eos: broadcasting it back to everyone except route from %s", client->direction->name); -#endif sendto_server(client, 0, 0, NULL, ":%s EOS", client->id); RunHook(HOOKTYPE_SERVER_SYNCED, client); diff --git a/src/modules/reputation.c b/src/modules/reputation.c index e35cc0ada..c636a8605 100644 --- a/src/modules/reputation.c +++ b/src/modules/reputation.c @@ -22,7 +22,7 @@ /* Change to #define to benchmark. Note that this will add random * reputation entries so should never be used on production servers!!! */ -#define BENCHMARK +#undef BENCHMARK #undef TEST /* Benchmark results (2GHz Xeon Skylake, compiled with -O2, Linux): diff --git a/src/modules/tkldb.c b/src/modules/tkldb.c index 57a22745b..4356315e6 100644 --- a/src/modules/tkldb.c +++ b/src/modules/tkldb.c @@ -38,8 +38,7 @@ ModuleHeader MOD_HEADER = { */ #define TKLDB_SAVE_EVERY_DELTA +15 -#ifdef DEBUGMODE - #define BENCHMARK +// #undef BENCHMARK /* Benchmark results (2GHz Xeon Skylake, compiled with -O2, Linux): * 100,000 zlines: * - load db: 510 ms @@ -48,7 +47,6 @@ ModuleHeader MOD_HEADER = { * which executes every 5 minutes. * Of course, exact figures will depend on the machine. */ -#endif #define FreeTKLRead() \ do { \