From c321262ffc57008b1d4e9fd33fbd60fa46a8238a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 15 Dec 2011 17:54:38 +0100 Subject: [PATCH] adapt to API_LOGLEVEL --- system/TestPlc.py | 3 ++- system/config_default.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/TestPlc.py b/system/TestPlc.py index dae829b..ab2c501 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -1240,11 +1240,12 @@ class TestPlc: 'SFA_DB_USER', 'SFA_DB_PASSWORD', 'SFA_DB_NAME', + 'SFA_API_LOGLEVEL', ]: if self.plc_spec['sfa'].has_key(var): fileconf.write ('e %s\n%s\n'%(var,self.plc_spec['sfa'][var])) # the way plc_config handles booleans just sucks.. - for var in ['SFA_API_DEBUG']: + for var in []: val='false' if self.plc_spec['sfa'][var]: val='true' fileconf.write ('e %s\n%s\n'%(var,val)) diff --git a/system/config_default.py b/system/config_default.py index 0bab510..b286b34 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -309,7 +309,7 @@ def sfa (options,index) : 'SFA_PLC_PASSWORD' : 'test++', # use -c apiv2 to override this one # 'SFA_AGGREGATE_API_VERSION' : 1, - 'SFA_API_DEBUG': True, + 'SFA_API_LOGLEVEL': 1, # details of the slices to create 'sfa_slice_specs' : [ sfa_slice_spec(options,index,rspec_style) for rspec_style in options.rspec_styles ] -- 2.43.0