From eabad1f49b519d0a7b73a2644c14a94e87545dda Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 25 May 2018 16:18:18 +0200 Subject: [PATCH] sfaadmin reg import writes on stdout if DEBUG is set --- sfa/client/sfaadmin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sfa/client/sfaadmin.py b/sfa/client/sfaadmin.py index 4cc3e8ce..2ef48099 100755 --- a/sfa/client/sfaadmin.py +++ b/sfa/client/sfaadmin.py @@ -28,6 +28,9 @@ from sfa.client.sfi import save_records_to_file pprinter = PrettyPrinter(indent=4) +# if set, will output on stdout +DEBUG = False + try: help_basedir = Hierarchy().basedir except Exception: @@ -319,7 +322,8 @@ Users having a GID/PubKey correpondence NOT OK: %s and are: \n%s\n\n" def import_registry(self): """Run the importer""" - init_logger('import') + if not DEBUG: + init_logger('import') from sfa.importer import Importer importer = Importer() importer.run() -- 2.45.2