Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def convert_endpoint(endpoint: Endpoint) -> str:
filtered_endpoints = Endpoint.filter_enabled(self.endpoints())
endpoints = " ".join([convert_endpoint(endpoint) for endpoint in [master_endpoint, *filtered_endpoints]])

return f"{self.binary()} {endpoints}"
if not self.log_path:
self.log_path = "/var/logs/blueos/services/mavlink-server/"

return f"{self.binary()} {endpoints} --log-path={self.log_path}"

@staticmethod
def name() -> str:
Expand Down
1 change: 1 addition & 0 deletions core/services/ardupilot_manager/mavlink_proxy/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ async def serial_test_mavlink_server(
master_endpoints = create_endpoints_with_offset(valid_master_endpoints, 0)

mavlink_server = MAVLinkServer()
mavlink_server.log_path = "./logs"
assert mavlink_server.name() == "MAVLink-Server", "Name does not match."
assert re.search(r"\d+.\d+.\d+", str(mavlink_server.version())) is not None, "Version does not follow pattern."

Expand Down