fix: disable prison-break debug logs

This commit is contained in:
teutat3s 2024-02-05 12:52:18 +01:00
parent 06c48d0ae5
commit 52cdd58954
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -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'):