Skip to content

Commit

Permalink
Remove duplicated error log
Browse files Browse the repository at this point in the history
  • Loading branch information
le717 committed Oct 28, 2021
1 parent 3702d0e commit 2ba6552
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app_factory.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from os import fspath
from importlib import import_module
import logging

from alembic import command
from alembic.config import Config
Expand Down Expand Up @@ -28,9 +26,6 @@ def create_app():
if app.config["ENV"] == "production":
app.config["OPENAPI_URL_PREFIX"] = None

# Add a file logger to record errors
app.logger.addHandler(logger.file_handler("error-app.log"))

# Enable Discord webhook event logging, falling back to a text log
if sys_vars.get_bool("ENABLE_DISCORD_LOGGING"):
logger.LINKROT.addHandler(logger.DiscordHandler())
Expand Down

0 comments on commit 2ba6552

Please sign in to comment.