From: Tony Mack Date: Wed, 4 Jan 2012 19:54:50 +0000 (-0500) Subject: sfaImport no longer has verbose option X-Git-Tag: sfa-2.0-8~1 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=52b14c40b981b620ca002959e243cdbd4784a536 sfaImport no longer has verbose option --- diff --git a/sfa/importer/sfaImport.py b/sfa/importer/sfaImport.py index 6cb47f5a..74f1042f 100644 --- a/sfa/importer/sfaImport.py +++ b/sfa/importer/sfaImport.py @@ -91,7 +91,8 @@ class sfaImport: # create the db record if it doesnt already exist auth_info = self.AuthHierarchy.get_auth_info(hrn) auth_record = SfaRecord(hrn=hrn, gid=auth_info.get_gid_object(), type="authority", pointer=-1, authority=get_authority(hrn)) - auth_record.sync(verbose=True) + self.logger.info("Import: importing %s " % auth_record.summary_string()) + auth_record.sync() def create_sm_client_record(self): """ @@ -106,7 +107,8 @@ class sfaImport: auth_info = self.AuthHierarchy.get_auth_info(hrn) record = SfaRecord(hrn=hrn, gid=auth_info.get_gid_object(), \ type="user", pointer=-1, authority=get_authority(hrn)) - record.sync(verbose=True) + self.logger.info("Import: importing %s " % record.summary_string()) + record.sync() def create_interface_records(self): """ @@ -124,7 +126,8 @@ class sfaImport: gid = self.AuthHierarchy.create_gid(urn, create_uuid(), pkey) interface_record = SfaRecord(hrn=hrn, type=interface, pointer=-1, gid = gid, authority=get_authority(hrn)) - interface_record.sync(verbose=True) + self.logger.info("Import: importing %s " % interface_record.summary_string()) + interface_record.sync() def delete_record(self, hrn, type): # delete the record