forked from pub-solar/os
fix: disable prison-break debug logs
This commit is contained in:
parent
06c48d0ae5
commit
52cdd58954
1 changed files with 2 additions and 13 deletions
|
@ -1,16 +1,7 @@
|
||||||
diff --git a/prisonbreak/cli.py b/prisonbreak/cli.py
|
diff --git a/prisonbreak/cli.py b/prisonbreak/cli.py
|
||||||
index 0add782..10eda94 100755
|
index 0add782..5bd51b2 100755
|
||||||
--- a/prisonbreak/cli.py
|
--- a/prisonbreak/cli.py
|
||||||
+++ b/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
|
@@ -57,7 +57,7 @@ def send_notify(message,title="Prison-Break",icon="dialog-warning-symbolic",do_n
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -56,11 +47,9 @@ index 0add782..10eda94 100755
|
||||||
", assuming no captive portal")
|
", assuming no captive portal")
|
||||||
if args['--force-token']:
|
if args['--force-token']:
|
||||||
log.info("Continuing even though we got the correct token!")
|
log.info("Continuing even though we got the correct token!")
|
||||||
@@ -171,8 +171,9 @@ def main():
|
@@ -172,7 +172,7 @@ def main():
|
||||||
note("Trying to accept AGBs for you now!",title=f"Prison-Break Plugin {name}")
|
|
||||||
#notify2.Notification("Summary", "Some body text", "notification-message-im").show()
|
#notify2.Notification("Summary", "Some body text", "notification-message-im").show()
|
||||||
if plug.accept(initial_response, s):
|
if plug.accept(initial_response, s):
|
||||||
+ log.debug(s.get(check_online_url,timeout=timeout).headers)
|
|
||||||
log.info(f"{name} successful?")
|
log.info(f"{name} successful?")
|
||||||
- if s.get(secret_url,timeout=timeout).text.startswith("1337"):
|
- if s.get(secret_url,timeout=timeout).text.startswith("1337"):
|
||||||
+ if 'nginx' == s.get(check_online_url,timeout=timeout).headers.get('Server'):
|
+ if 'nginx' == s.get(check_online_url,timeout=timeout).headers.get('Server'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue