Skip to content

Commit

Permalink
fix for logging in case systemd is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
avollkopf committed May 2, 2024
1 parent fe15b4c commit ed7580b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
2 changes: 1 addition & 1 deletion cbpi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "4.4.1.a6"
__version__ = "4.4.1.a7"
__codename__ = "Yeast Starter"

2 changes: 1 addition & 1 deletion cbpi/controller/system_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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:
Expand Down

0 comments on commit ed7580b

Please sign in to comment.