summaryrefslogtreecommitdiffstats
path: root/src/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.py')
-rw-r--r--src/log.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/log.py b/src/log.py
index 0d86a16..9478bb7 100644
--- a/src/log.py
+++ b/src/log.py
@@ -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