mirror of https://gitlab.com/bashrc2/epicyon
Show return value in debug mode
parent
21b9cd6514
commit
53eeb041fd
|
@ -451,7 +451,6 @@ def _receive_new_post_process_editblog(self, fields: {},
|
||||||
save_json(post_json_object, post_filename)
|
save_json(post_json_object, post_filename)
|
||||||
print('Edited blog post, resaved ' + post_filename)
|
print('Edited blog post, resaved ' + post_filename)
|
||||||
return NEW_POST_SUCCESS
|
return NEW_POST_SUCCESS
|
||||||
else:
|
|
||||||
print('Edited blog post, unable to load json for ' +
|
print('Edited blog post, unable to load json for ' +
|
||||||
post_filename)
|
post_filename)
|
||||||
else:
|
else:
|
||||||
|
@ -2266,6 +2265,7 @@ def receive_new_post(self, post_type, path: str,
|
||||||
# otherwise any attachments can get mangled if
|
# otherwise any attachments can get mangled if
|
||||||
# other events happen during their decoding
|
# other events happen during their decoding
|
||||||
print('Creating new post from: ' + new_post_thread_name)
|
print('Creating new post from: ' + new_post_thread_name)
|
||||||
|
retval = \
|
||||||
_receive_new_post_process(self, post_type,
|
_receive_new_post_process(self, post_type,
|
||||||
original_path,
|
original_path,
|
||||||
headers, length,
|
headers, length,
|
||||||
|
@ -2302,4 +2302,7 @@ def receive_new_post(self, post_type, path: str,
|
||||||
onion_domain,
|
onion_domain,
|
||||||
i2p_domain,
|
i2p_domain,
|
||||||
max_shares_on_profile)
|
max_shares_on_profile)
|
||||||
|
if debug:
|
||||||
|
print('DEBUG: _receive_new_post_process returned ' +
|
||||||
|
str(retval))
|
||||||
return page_number
|
return page_number
|
||||||
|
|
Loading…
Reference in New Issue