Use debug flag

merge-requests/30/head
Bob Mottram 2024-05-29 15:37:16 +01:00
parent 3a9dffe2dc
commit f4cd9fa138
1 changed files with 12 additions and 8 deletions

View File

@ -136,6 +136,7 @@ def _get_replies_to_post(post_json_object: {},
replies_collection_id = post_obj['replies']
if replies_collection_id:
if debug:
print('DEBUG: get_replies_to_post replies_collection_id ' +
str(replies_collection_id))
@ -146,6 +147,7 @@ def _get_replies_to_post(post_json_object: {},
if not get_json_valid(replies_collection):
return result
if debug:
print('DEBUG: get_replies_to_post replies_collection ' +
str(replies_collection))
# get the list of replies
@ -169,6 +171,7 @@ def _get_replies_to_post(post_json_object: {},
get_json(signing_priv_key_pem, session, next_page_id,
as_header, None, debug, __version__,
http_prefix, domain)
if debug:
print('DEBUG: get_replies_to_post next replies_collection ' +
str(replies_collection))
if not get_json_valid(replies_collection):
@ -179,6 +182,7 @@ def _get_replies_to_post(post_json_object: {},
return result
items_list = replies_collection['items']
if debug:
print('DEBUG: get_replies_to_post items_list ' +
str(items_list))