fix for logging in case systemd is not available

This commit is contained in:
avollkopf 2024-05-02 17:39:43 +02:00
parent fe15b4c0e9
commit ed7580b5b0
3 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@ RUN apt-get update \
&& apt-get upgrade -y
RUN apt-get install --no-install-recommends -y \
libatlas-base-dev \
libsystemd-dev \
libffi-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

View file

@ -1,3 +1,3 @@
__version__ = "4.4.1.a6"
__version__ = "4.4.1.a7"
__codename__ = "Yeast Starter"

View file

@ -21,7 +21,7 @@ try:
from systemd import journal
systemd_available=True
except Exception:
logger.warning("Failed to load systemd library. logfile download not available")
logging.warning("Failed to load systemd library. logfile download not available")
systemd_available=False
class SystemController: