From 1ebca1ff058bb51f54114ff0e744255ec56f072a Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Tue, 6 Feb 2024 19:30:32 +0100 Subject: [PATCH] BUG/BUG_TS: Prefix messages with MIES In that way there is no question from which software package the message came. Close #1992. --- Packages/MIES/MIES_Debugging.ipf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/MIES/MIES_Debugging.ipf b/Packages/MIES/MIES_Debugging.ipf index 1dff622e4e..3efbeef8a8 100644 --- a/Packages/MIES/MIES_Debugging.ipf +++ b/Packages/MIES/MIES_Debugging.ipf @@ -543,9 +543,9 @@ Function BUG(string msg, [WAVE/T keys, WAVE/T values]) msg = RemoveEnding(msg, "\r") if(!isEmpty(func)) - printf "BUG %s(...)#L%s: %s\r", func, line, msg + printf "%s BUG %s(...)#L%s: %s\r", PACKAGE_MIES, func, line, msg else - printf "BUG: %s\r", msg + printf "%s BUG: %s\r", PACKAGE_MIES, msg endif ReportBugToLogfile(msg, keys, values) @@ -568,7 +568,7 @@ threadsafe Function BUG_TS(string msg, [WAVE/T keys, WAVE/T values]) ReportBugToLogfile(msg, keys, values) - printf "BUG_TS: %s\r", msg + printf "%s BUG_TS: %s\r", PACKAGE_MIES, msg #ifdef AUTOMATED_TESTING