From: Thierry Parmentelat Date: Wed, 8 Feb 2012 15:08:57 +0000 (+0100) Subject: -c sfadebug on the command line to increment API_LOGLEVEL X-Git-Tag: tests-5.0-36~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=aed1c85ae8b784349ea657a3528b6c9984a5b692;p=tests.git -c sfadebug on the command line to increment API_LOGLEVEL --- diff --git a/system/config_default.py b/system/config_default.py index 98a0be7..288b613 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -333,6 +333,7 @@ def plc (options,index) : 'leases' : leases (options, index), } +# NOTE: SFA currently has SFA_AGGREGATE_API_VERSION=2 baked into the code def sfa (options,index) : return { # the default is to use AMs in the various aggregates.xml @@ -347,8 +348,7 @@ def sfa (options,index) : 'SFA_PLC_URL' : 'deferred-myplc-api-url', 'SFA_PLC_USER' : 'root@test.onelab.eu', 'SFA_PLC_PASSWORD' : 'test++', -# use -c apiv2 to override this one -# 'SFA_AGGREGATE_API_VERSION' : 1, +# use -c sfadebug to increment this one 'SFA_API_LOGLEVEL': 1, # details of the slices to create 'sfa_slice_specs' : [ sfa_slice_spec(options,index,rspec_style) diff --git a/system/config_sfadebug.py b/system/config_sfadebug.py new file mode 100644 index 0000000..c7b14c1 --- /dev/null +++ b/system/config_sfadebug.py @@ -0,0 +1,12 @@ +# Thierry Parmentelat +# Copyright (C) 2012 INRIA +# +# increment SFA_API_LOGLEVEL on all incoming plc_spec's + +def config (plc_specs, options): + def tweak_loglevel (plc_spec): + plc_spec['sfa']['SFA_API_LOGLEVEL'] += 1 + return plc_spec + return [tweak_loglevel (plc_spec) for plc_spec in plc_specs ] + +