kopia lustrzana https://github.com/snarfed/bridgy-fed
flask app: suppress some lexprc and negotiator logging
rodzic
9eaa979fba
commit
6860d49dd1
4
app.py
4
app.py
|
@ -18,6 +18,9 @@ from oauth_dropins.webutil import (
|
||||||
import common
|
import common
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
logging.getLogger('lexrpc').setLevel(logging.INFO)
|
||||||
|
logging.getLogger('negotiator').setLevel(logging.WARNING)
|
||||||
|
|
||||||
app_dir = Path(__file__).parent
|
app_dir = Path(__file__).parent
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +47,6 @@ util.set_user_agent('Bridgy Fed (https://fed.brid.gy/)')
|
||||||
# XRPC server
|
# XRPC server
|
||||||
lexicons = []
|
lexicons = []
|
||||||
for filename in (app_dir / 'lexicons/app/bsky').glob('**/*.json'):
|
for filename in (app_dir / 'lexicons/app/bsky').glob('**/*.json'):
|
||||||
logger.debug(f'Loading lexicon from {filename}')
|
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
lexicons.append(json.load(f))
|
lexicons.append(json.load(f))
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue