From beea9e7bb7171aa6a9e6f2524b83e5f58350258d Mon Sep 17 00:00:00 2001 From: icex2 Date: Fri, 21 Aug 2020 14:28:13 +0200 Subject: [PATCH] util/log: Add TODO pointing out design flaw --- src/main/util/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/util/log.c b/src/main/util/log.c index 925da9b..2acff45 100644 --- a/src/main/util/log.c +++ b/src/main/util/log.c @@ -59,6 +59,7 @@ static void log_builtin_format( result = str_format( line, sizeof(line), "%c:%s: %s\n", chars[msg_level], module, msg); + // TODO move this up because there is no reason to format and do all the above if disabled if (msg_level <= log_level) { log_writer(log_writer_ctx, line, result); }