From 6a653a182c348b56d2de93e7bb510d44341be3ac Mon Sep 17 00:00:00 2001 From: bashrc Date: Mon, 23 Feb 2026 21:42:18 +0000 Subject: [PATCH] Debug --- daemon_post_receive.py | 6 ++++++ epicyon.py | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/daemon_post_receive.py b/daemon_post_receive.py index 07868ea76..12d673891 100644 --- a/daemon_post_receive.py +++ b/daemon_post_receive.py @@ -303,6 +303,8 @@ def _receive_new_post_process_newblog(self, fields: {}, cookie, calling_domain, False) write2(self, message_json) return NEW_POST_SUCCESS + if debug: + print('New post failed on citations') return NEW_POST_FAILED if not fields['subject']: print('WARN: blog posts must have a title') @@ -384,6 +386,8 @@ def _receive_new_post_process_newblog(self, fields: {}, max_replies, debug) return NEW_POST_SUCCESS + if debug: + print('Failed to post new blog') return NEW_POST_FAILED @@ -1800,6 +1804,8 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {}, print('DEBUG: receiving POST') if ' boundary=' not in headers['Content-Type']: + if debug: + print('No boundary in Content-Type header') return NEW_POST_FAILED if debug: diff --git a/epicyon.py b/epicyon.py index 3afa00ef5..0d63d5e47 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1840,7 +1840,7 @@ def _command_options() -> None: proxy_type = 'tor' elif argb.i2p or domain.endswith('.i2p'): proxy_type = 'i2p' - elif argb.yggdrasil_domain or is_yggdrasil_address(domain): + elif argb.yggdrasil or is_yggdrasil_address(domain): proxy_type = 'yggdrasil' elif argb.gnunet: proxy_type = 'gnunet' @@ -2146,7 +2146,7 @@ def _command_options() -> None: proxy_type = 'i2p' if domain.endswith('.i2p'): argb.port = 80 - elif argb.yggdrasil_domain or is_yggdrasil_address(domain): + elif argb.yggdrasil or is_yggdrasil_address(domain): proxy_type = 'yggdrasil' if is_yggdrasil_address(domain): argb.port = 80 @@ -2234,7 +2234,7 @@ def _command_options() -> None: proxy_type = 'i2p' if domain.endswith('.i2p'): argb.port = 80 - elif argb.yggdrasil_domain or is_yggdrasil_address(domain): + elif argb.yggdrasil or is_yggdrasil_address(domain): proxy_type = 'yggdrasil' if is_yggdrasil_address(domain): argb.port = 80 @@ -3036,7 +3036,7 @@ def _command_options() -> None: http_prefix = 'ipns' if argb.i2p: http_prefix = 'http' - if argb.yggdrasil_domain: + if argb.yggdrasil: http_prefix = 'http' if argb.migrations: @@ -3651,7 +3651,7 @@ def _command_options() -> None: proxy_type = 'i2p' if domain.endswith('.i2p'): argb.port = 80 - elif argb.yggdrasil_domain or is_yggdrasil_address(domain): + elif argb.yggdrasil or is_yggdrasil_address(domain): proxy_type = 'yggdrasil' if is_yggdrasil_address(domain): argb.port = 80