forked from pub-solar/os
fix: disable prison-break debug logs
This commit is contained in:
parent
06c48d0ae5
commit
52cdd58954
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue