Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKPORT v2.12] core: remove way too verbose warnings #2447

Merged
merged 1 commit into from
Nov 21, 2024
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
8 changes: 6 additions & 2 deletions src/mavsdk/core/mavlink_ftp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ void MavlinkFtpClient::process_mavlink_ftp_message(const mavlink_message_t& msg)
mavlink_msg_file_transfer_protocol_decode(&msg, &ftp_req);

if (ftp_req.target_system != 0 && ftp_req.target_system != _system_impl.get_own_system_id()) {
LogWarn() << "Received FTP with wrong target system ID!";
if (_debugging) {
LogDebug() << "Received FTP message with wrong target system ID";
}
return;
}

if (ftp_req.target_component != 0 &&
ftp_req.target_component != _system_impl.get_own_component_id()) {
LogWarn() << "Received FTP with wrong target component ID!";
if (_debugging) {
LogDebug() << "Received FTP message with wrong target component ID";
}
return;
}

Expand Down
8 changes: 6 additions & 2 deletions src/mavsdk/core/mavlink_ftp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ void MavlinkFtpServer::process_mavlink_ftp_message(const mavlink_message_t& msg)

if (ftp_req.target_system != 0 &&
ftp_req.target_system != _server_component_impl.get_own_system_id()) {
LogWarn() << "wrong sysid!";
if (_debugging) {
LogDebug() << "Received FTP message with wrong target system ID";
}
return;
}

if (ftp_req.target_component != 0 &&
ftp_req.target_component != _server_component_impl.get_own_component_id()) {
LogWarn() << "wrong compid!";
if (_debugging) {
LogDebug() << "Received FTP message with wrong target component ID";
}
return;
}

Expand Down
Loading