diff --git a/crlcore/python/helpers/io.py b/crlcore/python/helpers/io.py index 2f66c5d4..737e1f83 100644 --- a/crlcore/python/helpers/io.py +++ b/crlcore/python/helpers/io.py @@ -160,7 +160,8 @@ def isVL ( level ): confLevel = 0 if Cfg.getParamBool('misc.verboseLevel1').asBool(): confLevel = 1 if Cfg.getParamBool('misc.verboseLevel2').asBool(): confLevel = 2 - return confLevel >= level + #print( 'level {} <= confLevel {}'.format(level,confLevel)) + return level <= confLevel def vprint ( level, message ): diff --git a/crlcore/python/helpers/overlay.py b/crlcore/python/helpers/overlay.py index 1161f14c..2f0d7f83 100644 --- a/crlcore/python/helpers/overlay.py +++ b/crlcore/python/helpers/overlay.py @@ -27,6 +27,7 @@ Contains: import Cfg import Hurricane +from .io import isVL class UpdateSession ( object ): @@ -227,7 +228,7 @@ class CfgCache ( object ): def __exit__( self, *args ): self.apply() - self.display() + if isVL(2): self.display() def __init__ ( self, path='', priority=None ): """Create a new CfgCache with a ``path`` as parent path."""