summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-04 16:33:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-04 17:56:30 +0200
commitac3917c42f23d3b194afd54c2276e7a20bed5be7 (patch)
tree8df342660b9f7f910ba0b4e23bc718774ec4a387 /core/io
parent0056acf46fc88757cae9d9f6fe9805f0eec1cd09 (diff)
Logger: Don't print error twice on `ERR_PRINT`
Also fix broken `ERR_PRINT_ED` macro and simplify comments. For the record these macros aren't used yet, they're intended to be used where needed to surface messages in the toaster when useful to end users, but we haven't done that codebase review yet.
Diffstat (limited to 'core/io')
-rw-r--r--core/io/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/logger.cpp b/core/io/logger.cpp
index b0f74f8db5..288e53d075 100644
--- a/core/io/logger.cpp
+++ b/core/io/logger.cpp
@@ -87,7 +87,7 @@ void Logger::log_error(const char *p_function, const char *p_file, int p_line, c
} else {
logf_error("USER %s: %s\n", err_type, err_details);
}
- logf_error(" at: %s (%s:%i) - %s\n", p_function, p_file, p_line, p_code);
+ logf_error(" at: %s (%s:%i)\n", p_function, p_file, p_line);
}
void Logger::logf(const char *p_format, ...) {