Skip to content

Commit 36c033c

Browse files
committed
Remove module-level debug logging overrides
Remove explicit logger.setLevel / basicConfig calls that force debug/info levels in several modules so the application-wide logging configuration can control log levels (preparing for release). Affected files: dlclivegui/cameras/backends/opencv_backend.py, dlclivegui/gui/camera_config/camera_config_dialog.py, dlclivegui/gui/camera_config/loaders.py, dlclivegui/gui/main_window.py, dlclivegui/processors/dlc_processor_socket.py. This avoids forcing verbose output and prevents accidental global logging reconfiguration.
1 parent 09a8364 commit 36c033c

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

dlclivegui/cameras/backends/opencv_backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
)
2626

2727
logger = logging.getLogger(__name__)
28-
logger.setLevel(logging.DEBUG) # FIXME @C-Achard remove before release
2928

3029
if TYPE_CHECKING:
3130
from dlclivegui.config import CameraSettings

dlclivegui/gui/camera_config/camera_config_dialog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from .ui_blocks import setup_camera_config_dialog_ui
2525

2626
LOGGER = logging.getLogger(__name__)
27-
LOGGER.setLevel(logging.DEBUG) # TODO @C-Achard remove for release
2827

2928

3029
class CameraConfigDialog(QDialog):

dlclivegui/gui/camera_config/loaders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from ...cameras.factory import CameraBackend, CameraFactory
1212

1313
LOGGER = logging.getLogger(__name__)
14-
LOGGER.setLevel(logging.DEBUG)
1514

1615

1716
# -------------------------------

dlclivegui/gui/main_window.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@
8282
from .recording_manager import RecordingManager
8383
from .theme import LOGO, LOGO_ALPHA, AppStyle, apply_theme
8484

85-
# logging.basicConfig(level=logging.INFO)
86-
logging.basicConfig(level=logging.DEBUG) # FIXME @C-Achard set back to INFO for release
8785
logger = logging.getLogger("DLCLiveGUI")
8886

8987

dlclivegui/processors/dlc_processor_socket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from dlclive import Processor # type: ignore
1818

1919
logger = logging.getLogger("dlc_processor_socket")
20-
logger.setLevel(logging.INFO)
2120

2221
# Avoid duplicate handlers if module is imported multiple times
2322
if not any(isinstance(h, logging.StreamHandler) for h in logger.handlers):

0 commit comments

Comments
 (0)