Skip to content

Commit

Permalink
Add do_default_logging_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-fernandes committed Sep 19, 2024
1 parent 8138d78 commit 5e8ac7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/blueapi/worker/task_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pydantic import Field
from super_state_machine.errors import TransitionError

from blueapi.config import LoggingConfig
from blueapi.core import (
BlueskyContext,
DataEvent,
Expand All @@ -20,6 +21,7 @@
WatchableStatus,
)
from blueapi.core.bluesky_event_loop import configure_bluesky_event_loop
from blueapi.log import do_default_logging_setup
from blueapi.utils.base_model import BlueapiBaseModel
from blueapi.utils.thread_exception import handle_all_exceptions

Expand All @@ -36,6 +38,9 @@
from .worker_errors import WorkerAlreadyStartedError, WorkerBusyError

LOGGER = logging.getLogger(__name__)
logging_config = LoggingConfig()
do_default_logging_setup(logging_config.logging_dev_mode)


DEFAULT_START_STOP_TIMEOUT: float = 30.0

Expand Down

0 comments on commit 5e8ac7c

Please sign in to comment.