Revize 1769e2e2
Přidáno uživatelem David Friesecký před téměř 4 roky(ů)
src/utils/logger.py | ||
---|---|---|
1 | 1 |
import inspect |
2 | 2 |
import logging |
3 |
import sys |
|
3 | 4 |
from logging import handlers |
4 | 5 |
import os |
5 | 6 |
from pathlib import Path |
... | ... | |
28 | 29 |
log = logging.getLogger('werkzeug') |
29 | 30 |
log.disabled = True |
30 | 31 |
|
32 |
if 'pytest' in sys.modules: |
|
33 |
logging.disable(logging.CRITICAL) |
|
34 |
|
|
31 | 35 |
|
32 | 36 |
class Logger: |
33 | 37 |
|
Také k dispozici: Unified diff
Re #8779 - Implemented disabling logging during tests