From 6b3bd9529ee8090868e00505b6077ca61d2c09ed Mon Sep 17 00:00:00 2001 From: syntron Date: Tue, 17 Jun 2025 08:55:26 +0200 Subject: [PATCH] [ModelicaSystem] fix invalid logger call --- OMPython/ModelicaSystem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OMPython/ModelicaSystem.py b/OMPython/ModelicaSystem.py index f74e3f5b0..3a140d9a1 100644 --- a/OMPython/ModelicaSystem.py +++ b/OMPython/ModelicaSystem.py @@ -1047,10 +1047,10 @@ def setParameters(self, pvals): # 14 def isParameterChangeable(self, name, value): q = self.getQuantities(name) if q[0]["changeable"] == "false": - logger.verbose(f"setParameters() failed : It is not possible to set the following signal {repr(name)}. " - "It seems to be structural, final, protected or evaluated or has a non-constant binding, " - f"use sendExpression(\"setParameterValue({self.modelName}, {name}, {value})\") " - "and rebuild the model using buildModel() API") + logger.debug(f"setParameters() failed : It is not possible to set the following signal {repr(name)}. " + "It seems to be structural, final, protected or evaluated or has a non-constant binding, " + f"use sendExpression(\"setParameterValue({self.modelName}, {name}, {value})\") " + "and rebuild the model using buildModel() API") return False return True