Skip to content

Commit

Permalink
♻️ Only include logs if OctoPi is detected
Browse files Browse the repository at this point in the history
Follow-up to 29d2887
  • Loading branch information
foosel committed Aug 2, 2021
1 parent 9dabe0b commit 29f927e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions octoprint_pi_support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,13 @@ def get_additional_permissions(self):
# Additional bundle files hook

def get_additional_bundle_files(self, *args, **kwargs):
return {
"webcamd.log": "/var/log/webcamd.log",
"haproxy.log": "/var/log/haproxy.log",
}
if is_octopi():
return {
"webcamd.log": "/var/log/webcamd.log",
"haproxy.log": "/var/log/haproxy.log",
}
else:
return {}

# ~~ EnvironmentDetectionPlugin

Expand Down

0 comments on commit 29f927e

Please sign in to comment.