mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
fix for logging in case systemd is not available
This commit is contained in:
parent
fe15b4c0e9
commit
ed7580b5b0
3 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ RUN apt-get update \
|
||||||
&& apt-get upgrade -y
|
&& apt-get upgrade -y
|
||||||
RUN apt-get install --no-install-recommends -y \
|
RUN apt-get install --no-install-recommends -y \
|
||||||
libatlas-base-dev \
|
libatlas-base-dev \
|
||||||
|
libsystemd-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
__version__ = "4.4.1.a6"
|
__version__ = "4.4.1.a7"
|
||||||
__codename__ = "Yeast Starter"
|
__codename__ = "Yeast Starter"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ try:
|
||||||
from systemd import journal
|
from systemd import journal
|
||||||
systemd_available=True
|
systemd_available=True
|
||||||
except Exception:
|
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
|
systemd_available=False
|
||||||
|
|
||||||
class SystemController:
|
class SystemController:
|
||||||
|
|
Loading…
Reference in a new issue