Skip to content

Commit 29f927e

Browse files
committed
♻️ Only include logs if OctoPi is detected
Follow-up to 29d2887
1 parent 9dabe0b commit 29f927e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

octoprint_pi_support/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,13 @@ def get_additional_permissions(self):
245245
# Additional bundle files hook
246246

247247
def get_additional_bundle_files(self, *args, **kwargs):
248-
return {
249-
"webcamd.log": "/var/log/webcamd.log",
250-
"haproxy.log": "/var/log/haproxy.log",
251-
}
248+
if is_octopi():
249+
return {
250+
"webcamd.log": "/var/log/webcamd.log",
251+
"haproxy.log": "/var/log/haproxy.log",
252+
}
253+
else:
254+
return {}
252255

253256
# ~~ EnvironmentDetectionPlugin
254257

0 commit comments

Comments
 (0)