]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: more robust (from Mikhail PONIKAROV)
authorprascle <prascle>
Tue, 3 Feb 2004 15:39:54 +0000 (15:39 +0000)
committerprascle <prascle>
Tue, 3 Feb 2004 15:39:54 +0000 (15:39 +0000)
src/Logger/SALOME_Trace.py

index ab30f3379d505bce3e1bfa47c813b6ac5d2f87fa..900693e4106b5a547ac99b14b1570fee5e07c1c3 100644 (file)
@@ -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):