mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-17 10:14:45 +00:00
Disable werkzeug logs
This commit is contained in:
1 parent
c3bb2e3d77
commit
e32caeb9d6
1 file changed
+3
@@ -12,6 +12,9 @@ from serena.constants import SERENA_DASHBOARD_DIR
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
# disable Werkzeug's logging to avoid cluttering the output
|
||||||
|
logging.getLogger("werkzeug").setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
|
||||||
class MemoryLogHandler(logging.Handler):
|
class MemoryLogHandler(logging.Handler):
|
||||||
def __init__(self, level: int = logging.NOTSET) -> None:
|
def __init__(self, level: int = logging.NOTSET) -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user