summaryrefslogtreecommitdiffstats
path: root/src/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.py')
-rw-r--r--src/log.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.py b/src/log.py
index 9478bb7..13c625a 100644
--- a/src/log.py
+++ b/src/log.py
@@ -9,6 +9,7 @@
import logging
import logging.config
import os
+from src.utils.net import get_ethernet_interface
class OgError(Exception):
@@ -67,7 +68,7 @@ def _default_logging_live():
'samba': {
'class': 'logging.FileHandler',
'formatter': 'formatter.syslogtime',
- 'filename': f'/opt/opengnsys/log/{getifaddr(os.getenv("DEVICE"))}.log',
+ 'filename': f'/opt/opengnsys/log/{getifaddr(get_ethernet_interface())}.log',
}
}
rtlog = {