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 secrets
|
||||
from threading import Lock
|
||||
import shutil
|
||||
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
|
||||
from pwnagotchi.agent import Agent
|
||||
|
Reference in New Issue
Block a user