diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 12:11:02 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-22 12:11:02 +0200 |
commit | dd9940720cde6975f79d65e08075687c47f0aec6 (patch) | |
tree | 5a369b402ba67847cbd1a57403d740767ec53d6f | |
parent | e58c98e224afcf4a28078344e0cd5f8c0e10961f (diff) | |
parent | 30d84ef9ad4a0010288db18294766fd4d5ed6f4a (diff) |
merge master into loek/configloek/config
-rw-r--r-- | src/crepe/util/log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/util/log.cpp b/src/crepe/util/log.cpp index a2672a3..ce0c07a 100644 --- a/src/crepe/util/log.cpp +++ b/src/crepe/util/log.cpp @@ -25,11 +25,11 @@ static void log(enum log_level level, const string msg) { auto & cfg = crepe::api::Config::get_instance(); if (level < cfg.log.level) return; - string final = log_prefix(level) + msg; - if (!final.ends_with("\n")) final += "\n"; + string out = log_prefix(level) + msg; + if (!out.ends_with("\n")) out += "\n"; // TODO: also log to file or smth - printf("%s", final.c_str()); + printf("%s", out.c_str()); fflush(stdout); } |