✨ Include webcamd.log & haproxy.log in sysinfo bundle

This commit is contained in:
Gina Häußge committed 2021-07-05 11:57:23 +02:00
1 parent d73d530600
commit 1e16e9052c
1 file changed
+8
+8
View File
@@ -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