From 30996a119b56c90a8f4e9955f851932f791b2f0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Fri, 3 Feb 2017 15:26:07 +0100 Subject: [PATCH] Update verbosity --- bin/salomeContext.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 7c034fd9b..fdbec33d5 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2013-2017 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -97,7 +97,7 @@ class SalomeContext: if extension == ".cfg": self.__setContextFromConfigFile(filename, reserved) else: - self.getLogger().warning("Unrecognized extension for configuration file: %s", filename) + self.getLogger().error("Unrecognized extension for configuration file: %s", filename) # def __loadMPI(self, module_name): @@ -165,11 +165,11 @@ class SalomeContext: def setVariable(self, name, value, overwrite=False): env = os.getenv(name, '') if env and not overwrite: - self.getLogger().warning("Environment variable already existing (and not overwritten): %s=%s", name, value) + self.getLogger().error("Environment variable already existing (and not overwritten): %s=%s", name, value) return if env: - self.getLogger().warning("Overwriting environment variable: %s=%s", name, value) + self.getLogger().debug("Overwriting environment variable: %s=%s", name, value) value = os.path.expandvars(value) # expand environment variables self.getLogger().debug("Set environment variable: %s=%s", name, value) @@ -263,7 +263,7 @@ class SalomeContext: return res or (None, None) except SystemExit, returncode: if returncode != 0: - self.getLogger().warning("SystemExit %s in method %s.", returncode, command) + self.getLogger().error("SystemExit %s in method %s.", returncode, command) sys.exit(returncode) except StandardError: self.getLogger().error("Unexpected error:") -- 2.39.2