mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 05:24:54 +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
|
||||
RUN apt-get install --no-install-recommends -y \
|
||||
libatlas-base-dev \
|
||||
libsystemd-dev \
|
||||
libffi-dev \
|
||||
python3-pip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.4.1.a6"
|
||||
__version__ = "4.4.1.a7"
|
||||
__codename__ = "Yeast Starter"
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue