Skip to content

Commit daad4e3

Browse files
joaoantoniocardosopatrickelectric
authored andcommitted
core: services: ardupilot_manager: mavlink_proxy: Save mavlink-server logs
1 parent 54f649c commit daad4e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/services/ardupilot_manager/mavlink_proxy/MAVLinkServer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def convert_endpoint(endpoint: Endpoint) -> str:
4040
filtered_endpoints = Endpoint.filter_enabled(self.endpoints())
4141
endpoints = " ".join([convert_endpoint(endpoint) for endpoint in [master_endpoint, *filtered_endpoints]])
4242

43-
return f"{self.binary()} {endpoints}"
43+
if not self.log_path:
44+
self.log_path = "/var/logs/blueos/services/mavlink-server/"
45+
46+
return f"{self.binary()} {endpoints} --log-path={self.log_path}"
4447

4548
@staticmethod
4649
def name() -> str:

0 commit comments

Comments
 (0)