From 52cdd5895410e4d0a8544f86621569833f48e7b8 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 5 Feb 2024 12:52:18 +0100 Subject: [PATCH] fix: disable prison-break debug logs --- pkgs/prison-break-url.patch | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/prison-break-url.patch b/pkgs/prison-break-url.patch index a4a3a21e..177fc77e 100644 --- a/pkgs/prison-break-url.patch +++ b/pkgs/prison-break-url.patch @@ -1,16 +1,7 @@ diff --git a/prisonbreak/cli.py b/prisonbreak/cli.py -index 0add782..10eda94 100755 +index 0add782..5bd51b2 100755 --- a/prisonbreak/cli.py +++ b/prisonbreak/cli.py -@@ -31,7 +31,7 @@ from straight.plugin import load - - - def configure_debug(debug: bool) -> None: -- if debug: -+ if True: - logging.basicConfig(level=logging.DEBUG) - from http.client import HTTPConnection - @@ -57,7 +57,7 @@ def send_notify(message,title="Prison-Break",icon="dialog-warning-symbolic",do_n def main(): @@ -56,11 +47,9 @@ index 0add782..10eda94 100755 ", assuming no captive portal") if args['--force-token']: log.info("Continuing even though we got the correct token!") -@@ -171,8 +171,9 @@ def main(): - note("Trying to accept AGBs for you now!",title=f"Prison-Break Plugin {name}") +@@ -172,7 +172,7 @@ def main(): #notify2.Notification("Summary", "Some body text", "notification-message-im").show() if plug.accept(initial_response, s): -+ log.debug(s.get(check_online_url,timeout=timeout).headers) log.info(f"{name} successful?") - if s.get(secret_url,timeout=timeout).text.startswith("1337"): + if 'nginx' == s.get(check_online_url,timeout=timeout).headers.get('Server'):