Skip to content

Commit

Permalink
Minor update to app
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Aug 29, 2024
1 parent d683d2c commit 30e55e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from core.config import settings as CONFIG
from utils import enable_logging

# Enable logging
enable_logging()

# Create cloud adapter
ADAPTER = CloudAdapter(ConfigurationBotFrameworkAuthentication(CONFIG))
ADAPTER.on_turn_error = BotUtils.on_error
Expand All @@ -29,10 +32,6 @@ async def messages(req: Request) -> Response:
# Add route to app
APP.router.add_post("/api/messages", messages)

# Enable logging
enable_logging()


if __name__ == "__main__":
try:
web.run_app(APP, host="localhost", port=CONFIG.PORT)
Expand Down

0 comments on commit 30e55e4

Please sign in to comment.