diff options
Diffstat (limited to 'src/log.py')
-rw-r--r-- | src/log.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = { |