File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -107,13 +107,17 @@ void MavlinkFtpClient::process_mavlink_ftp_message(const mavlink_message_t& msg)
107
107
mavlink_msg_file_transfer_protocol_decode (&msg, &ftp_req);
108
108
109
109
if (ftp_req.target_system != 0 && ftp_req.target_system != _system_impl.get_own_system_id ()) {
110
- LogWarn () << " Received FTP with wrong target system ID!" ;
110
+ if (_debugging) {
111
+ LogDebug () << " Received FTP message with wrong target system ID" ;
112
+ }
111
113
return ;
112
114
}
113
115
114
116
if (ftp_req.target_component != 0 &&
115
117
ftp_req.target_component != _system_impl.get_own_component_id ()) {
116
- LogWarn () << " Received FTP with wrong target component ID!" ;
118
+ if (_debugging) {
119
+ LogDebug () << " Received FTP message with wrong target component ID" ;
120
+ }
117
121
return ;
118
122
}
119
123
Original file line number Diff line number Diff line change @@ -45,13 +45,17 @@ void MavlinkFtpServer::process_mavlink_ftp_message(const mavlink_message_t& msg)
45
45
46
46
if (ftp_req.target_system != 0 &&
47
47
ftp_req.target_system != _server_component_impl.get_own_system_id ()) {
48
- LogWarn () << " wrong sysid!" ;
48
+ if (_debugging) {
49
+ LogDebug () << " Received FTP message with wrong target system ID" ;
50
+ }
49
51
return ;
50
52
}
51
53
52
54
if (ftp_req.target_component != 0 &&
53
55
ftp_req.target_component != _server_component_impl.get_own_component_id ()) {
54
- LogWarn () << " wrong compid!" ;
56
+ if (_debugging) {
57
+ LogDebug () << " Received FTP message with wrong target component ID" ;
58
+ }
55
59
return ;
56
60
}
57
61
You can’t perform that action at this time.
0 commit comments