Skip to content

Commit

Permalink
Revert "immediately start debugger"
Browse files Browse the repository at this point in the history
  • Loading branch information
steersbob committed Jan 24, 2024
1 parent a7704b4 commit b4bc845
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions brewblox_history/app_factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import debugpy
import logging
from contextlib import AsyncExitStack, asynccontextmanager
from pprint import pformat
Expand All @@ -13,11 +12,6 @@
LOGGER = logging.getLogger(__name__)


debugpy.listen(('0.0.0.0', 5678))
debugpy.wait_for_client()
debugpy.breakpoint()


def setup_logging(debug: bool):
level = logging.DEBUG if debug else logging.INFO
unimportant_level = logging.INFO if debug else logging.WARN
Expand Down Expand Up @@ -70,6 +64,8 @@ def create_app() -> FastAPI:
import faulthandler
faulthandler.enable()

import debugpy
debugpy.listen(('0.0.0.0', 5678))
LOGGER.info('Debugger is enabled and listening on 5678')

# Call setup functions for modules
Expand Down

0 comments on commit b4bc845

Please sign in to comment.