From eb59a67252abfa714dc6dd7ab9226c875a1b9243 Mon Sep 17 00:00:00 2001 From: Martijn Arts Date: Tue, 21 Mar 2017 09:37:08 +0100 Subject: [PATCH] Print more startup information --- dredd_hooks/dredd.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dredd_hooks/dredd.py b/dredd_hooks/dredd.py index 0f4e6fc..12ca793 100644 --- a/dredd_hooks/dredd.py +++ b/dredd_hooks/dredd.py @@ -134,6 +134,9 @@ def load_hook_files(pathname): fsglob = sorted(glob.iglob(pathname)) for path in fsglob: + print('Found hook', path) + sys.stdout.flush() + real_path = os.path.realpath(path) # Append hooks file directory to the sys.path so submodules can be # loaded too. @@ -241,6 +244,12 @@ def main(files, host=HOST, port=PORT): global server global hooks hooks = Hooks() + print('Starting Dredd Python Hooks with:') + print(' - Files:', files) + print(' - Host:', host) + print(' - Port:', port) + sys.stdout.flush() + # Load hook files for f in files: load_hook_files(f)