From 1e16e9052c610236e7d655cbfcbc99f12c10c2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 5 Jul 2021 11:57:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Include=20webcamd.log=20&=20haproxy?= =?UTF-8?q?.log=20in=20sysinfo=20bundle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/cli/systeminfo.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/octoprint/cli/systeminfo.py b/src/octoprint/cli/systeminfo.py index c63fddb6f..96666c071 100644 --- a/src/octoprint/cli/systeminfo.py +++ b/src/octoprint/cli/systeminfo.py @@ -90,6 +90,14 @@ def get_systeminfo_bundle(systeminfo, logbase, printer=None): if os.path.exists(logpath): z.write(logpath, arcname=log, compress_type=compress_type) + # add additional logs as needed + for log, logpath in { + "webcamd.log": "/var/log/webcamd.log", + "haproxy.log": "/var/log/haproxy.log", + }.items(): + if os.path.exists(logpath) and os.access(logpath, os.R_OK): + z.write(logpath, arcname=log, compress_type=compress_type) + return z