diff options
Diffstat (limited to 'src/log.py')
-rw-r--r-- | src/log.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -11,6 +11,10 @@ import logging.config import os +class OgError(Exception): + pass + + def _default_logging_linux(): from src.utils.net import getifaddr logconfig = { @@ -125,7 +129,7 @@ def configure_logging(mode, level): elif mode == 'live': logconfig = _default_logging_live() else: - raise ValueError(f'Logging mode {mode} not supported') + raise OgError(f'Logging mode {mode} not supported') logconfig['loggers']['']['level'] = level |