From: prascle Date: Thu, 5 Jun 2003 07:14:55 +0000 (+0000) Subject: PR: force the transformation of message argument into string X-Git-Tag: V1_4_0~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbc508ddfbbde17026bd143b54fe90fe277701ee;p=modules%2Fkernel.git PR: force the transformation of message argument into string --- diff --git a/src/Utils/SALOME_utilities.py b/src/Utils/SALOME_utilities.py index 0911df2d8..f21c17457 100644 --- a/src/Utils/SALOME_utilities.py +++ b/src/Utils/SALOME_utilities.py @@ -15,20 +15,20 @@ def REPERE(): def BEGIN_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Begin of : "+ msg + "\n") + GLogger.putMessage("Begin of : "+ str(msg) + "\n") REPERE(); def END_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Normale end of : "+ msg + "\n") + GLogger.putMessage("Normale end of : "+ str(msg) + "\n") REPERE(); def MESSAGE(msg): if __debug__: MYTRACE() - GLogger.putMessage(msg + "\n") + GLogger.putMessage(str(msg) + "\n") def SCRUTE(var_name, var_value): MYTRACE(); diff --git a/src/Utils/utilities.py b/src/Utils/utilities.py index 0911df2d8..f21c17457 100644 --- a/src/Utils/utilities.py +++ b/src/Utils/utilities.py @@ -15,20 +15,20 @@ def REPERE(): def BEGIN_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Begin of : "+ msg + "\n") + GLogger.putMessage("Begin of : "+ str(msg) + "\n") REPERE(); def END_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Normale end of : "+ msg + "\n") + GLogger.putMessage("Normale end of : "+ str(msg) + "\n") REPERE(); def MESSAGE(msg): if __debug__: MYTRACE() - GLogger.putMessage(msg + "\n") + GLogger.putMessage(str(msg) + "\n") def SCRUTE(var_name, var_value): MYTRACE();