aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/util/log.cpp6
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);
}