X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fimporter%2Fsfa-import-plc.py;h=2371536f847b30c68ce673f02e032f91aea6034c;hb=594a6ec255180c073e622c4a96fc08494087b3a8;hp=a991552538be0915ef3cdfa4fd5fa5a74abf19b8;hpb=2ca98e9fe9c333b99fa7ba9f8950673d55db8a99;p=sfa.git diff --git a/sfa/importer/sfa-import-plc.py b/sfa/importer/sfa-import-plc.py index a9915525..2371536f 100755 --- a/sfa/importer/sfa-import-plc.py +++ b/sfa/importer/sfa-import-plc.py @@ -18,10 +18,9 @@ import os import getopt import sys -from sfa.util.xrn import get_leaf, get_authority -from sfa.util.plxrn import hostname_to_hrn, slicename_to_hrn, email_to_hrn, hrn_to_pl_slicename from sfa.util.config import Config -from sfa.util.xrn import Xrn +from sfa.util.xrn import Xrn, get_leaf, get_authority +from sfa.util.plxrn import hostname_to_hrn, slicename_to_hrn, email_to_hrn, hrn_to_pl_slicename from sfa.storage.table import SfaTable @@ -72,7 +71,7 @@ def main(): keys_filename = config.config_path + os.sep + 'person_keys.py' sfaImporter = sfaImport() logger=sfaImporter.logger - if config.SFA_API_DEBUG: logger.setLevelDebug() + logger.setLevelFromOptVerbose(config.SFA_API_LOGLEVEL) shell = sfaImporter.shell # initialize registry db table