Skip to content

Commit

Permalink
move logging config to conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 26, 2023
1 parent db152bb commit 03b1f0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
from rtoml import load as toml_load

from os import environ
import logging

with open(environ["SETTINGS"]) as f:
CONFIG = toml_load(f.read())

logging.basicConfig(
format="[%(levelname)s %(name)s] %(message)s",
level=logging.INFO,
)
6 changes: 0 additions & 6 deletions frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import socket
import tempfile
from datetime import datetime
from logging import basicConfig
from secrets import token_hex

import iso8601
Expand Down Expand Up @@ -37,11 +36,6 @@
from ib_hosted import get_scoped_api_key, ib, update_asset_userdata
from redis_session import RedisSessionStore

basicConfig(
format="[%(levelname)s %(name)s] %(message)s",
level=logging.INFO,
)

app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app)

Expand Down

0 comments on commit 03b1f0a

Please sign in to comment.