Set the initial verbose levels to off. Smarter loadUserSettings().

This commit is contained in:
Jean-Paul Chaput 2022-12-31 14:50:46 +01:00
parent 36eb9f9121
commit ae01be3c53
2 changed files with 6 additions and 3 deletions

View File

@ -322,7 +322,7 @@ def setNdaTopDir ( ndaTopDirArg ):
return
def staticInitialization ( quiet=False ):
def staticInitialization ( quiet=True ):
global sysConfDir
global technoDir
global tab
@ -422,6 +422,9 @@ def unloadUserSettings ():
def loadUserSettings ():
if Hurricane.DataBase.getDB() is not None:
print( ' o DataBase already initialized, skip loading of "./coriolis2/settings.py".' )
return True
rvalue = False
if os.path.isfile('./coriolis2/settings.py'):
if os.path.isfile('./coriolis2/__init__.py'):

View File

@ -339,8 +339,8 @@ namespace CRL {
Cfg::Configuration::get ();
Cfg::getParamBool ("misc.catchCore" ,false )->registerCb ( this, catchCoreChanged );
Cfg::getParamBool ("misc.verboseLevel1" ,true )->registerCb ( this, verboseLevel1Changed );
Cfg::getParamBool ("misc.verboseLevel2" ,true )->registerCb ( this, verboseLevel2Changed );
Cfg::getParamBool ("misc.verboseLevel1" ,false )->registerCb ( this, verboseLevel1Changed );
Cfg::getParamBool ("misc.verboseLevel2" ,false )->registerCb ( this, verboseLevel2Changed );
Cfg::getParamBool ("misc.info" ,false )->registerCb ( this, infoChanged );
Cfg::getParamBool ("misc.paranoid" ,false )->registerCb ( this, paranoidChanged );
Cfg::getParamBool ("misc.bug" ,false )->registerCb ( this, bugChanged );