Skip to content

Commit c27ff49

Browse files
committed
get rid of message when JSON is set on output
1 parent 7f8f53f commit c27ff49

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

IO/MsgOut.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ namespace IO
7979
else if(option == "JSON") {
8080
JSON_NMEA = Util::Parse::Switch(arg);
8181
if(JSON_NMEA) {
82-
std::cerr << "JSON NMEA SET" << std::endl;
8382
fmt = MessageFormat::JSON_NMEA;
8483
}
8584
return true;

IO/Network.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ namespace IO
251251
else if (option == "DEVICE_SETTING")
252252
{
253253
device_setting = JSON::StringBuilder::stringify(arg);
254-
std::cerr << "HTTP: set device_setting to " << arg << std::endl;
255-
std::cerr << "HTTP: set device_setting to " << device_setting << std::endl;
256254
}
257255
else
258256
{

Library/Basestation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Basestation : public SimpleStreamInOut<RAW, Plane::ADSB>
174174
}
175175
catch (const std::exception &e)
176176
{
177-
std::cerr << "Error processing line: " << line << " " << e.what() << std::endl;
177+
Error() << "Error processing line: " << line << " " << e.what() << std::endl;
178178
}
179179
line.clear();
180180
}

Library/Message.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ namespace AIS
364364
int newlength = MAX((pos+1)*6,length);
365365

366366
if (newlength >= MAX_AIS_LENGTH) {
367-
std::cerr << "Message::setLetter: length exceeds maximum AIS length." << std::endl;
367+
Error() << "Message::setLetter: length exceeds maximum AIS length." << std::endl;
368368
return;
369369
}
370370

0 commit comments

Comments
 (0)