From b99d1e5797e02e692a8fc7e532ab4730101cf0fd Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 4 Dec 2022 17:47:48 -0800 Subject: [PATCH] debug: remove function and line Generally we know where our own debug lines are coming from and it ends up causing a really long debug string. --- app/common/debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/debug.cpp b/app/common/debug.cpp index c132b48ee..c289c2f7c 100644 --- a/app/common/debug.cpp +++ b/app/common/debug.cpp @@ -45,7 +45,8 @@ void DebugHandler(QtMsgType type, const QMessageLogContext &context, const QStri break; } - fprintf(stderr, "[%s] %s (%s:%u)\n", msg_type, localMsg.constData(), context.function, context.line); + //fprintf(stderr, "[%s] %s (%s:%u)\n", msg_type, localMsg.constData(), context.function, context.line); + fprintf(stderr, "[%s] %s\n", msg_type, localMsg.constData()); #ifdef Q_OS_WINDOWS // Windows still seems to buffer stderr and we want to see debug messages immediately, so here we make sure each line