Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Print more startup information #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions dredd_hooks/dredd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down