|
15 | 15 |
|
16 | 16 | import pytest |
17 | 17 | from aioca import purge_channel_caches |
18 | | -from loguru import logger as _logger |
19 | 18 | from softioc import builder |
20 | 19 |
|
21 | 20 | from fastcs.attributes import AttrR, AttrRW, AttrW |
22 | 21 | from fastcs.datatypes import Bool, Float, Int, String |
23 | 22 | from fastcs.launch import build_controller_api |
24 | | -from fastcs.logging import LogLevel, configure_logging |
| 23 | +from fastcs.logging import logger |
25 | 24 | from fastcs.transport.tango.dsr import register_dev |
26 | 25 | from tests.assertable_controller import MyTestAttributeIORef, MyTestController |
27 | 26 | from tests.example_p4p_ioc import run as _run_p4p_ioc |
@@ -88,10 +87,11 @@ def _run_ioc_as_subprocess( |
88 | 87 | error_queue: multiprocessing.Queue, |
89 | 88 | stdout_queue: multiprocessing.Queue, |
90 | 89 | ): |
91 | | - configure_logging(LogLevel.INFO) |
| 90 | + # configure_logging(LogLevel.INFO) |
92 | 91 | # we need to capture log messages from transport |
93 | | - logger = _logger.bind(logger_name="fastcs.transport.epics.ca.transport") |
| 92 | + # logger = _logger.bind(logger_name="fastcs.transport.epics.ca.transport") |
94 | 93 | logger.add(print) # forward log messages to stdout |
| 94 | + logger.enable("fastcs") |
95 | 95 |
|
96 | 96 | try: |
97 | 97 | from pytest_cov.embed import cleanup_on_sigterm |
|
0 commit comments