mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fix: suppress flask logging
This commit is contained in:
@ -1,9 +1,12 @@
|
|||||||
import re
|
|
||||||
import _thread
|
import _thread
|
||||||
import secrets
|
import secrets
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
import shutil
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
|
# https://stackoverflow.com/questions/14888799/disable-console-messages-in-flask-server
|
||||||
|
logging.getLogger('werkzeug').disabled = True
|
||||||
|
os.environ['WERKZEUG_RUN_MAIN'] = 'true'
|
||||||
|
|
||||||
import pwnagotchi
|
import pwnagotchi
|
||||||
from pwnagotchi.agent import Agent
|
from pwnagotchi.agent import Agent
|
||||||
|
Reference in New Issue
Block a user