From: prascle Date: Tue, 3 Feb 2004 15:39:54 +0000 (+0000) Subject: PR: more robust (from Mikhail PONIKAROV) X-Git-Tag: V1_4_0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a3fef59b7849e937e22697bfa14b4a6be722de90;p=modules%2Fkernel.git PR: more robust (from Mikhail PONIKAROV) --- diff --git a/src/Logger/SALOME_Trace.py b/src/Logger/SALOME_Trace.py index ab30f3379..900693e41 100644 --- a/src/Logger/SALOME_Trace.py +++ b/src/Logger/SALOME_Trace.py @@ -15,8 +15,9 @@ import time import os trace="local" -if (os.environ["SALOME_trace"] == "with_logger"): - trace="logger" +if (os.environ.has_key("SALOME_trace")): + if (os.environ["SALOME_trace"] == "with_logger"): + trace="logger" class SALOME_Trace : def __init__(self):