mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-01-07 01:00:10 +01:00
log update in AprsIsTask
This commit is contained in:
parent
717f3c702c
commit
798d5b2041
|
|
@ -40,15 +40,12 @@ bool AprsIsTask::loop(System &system) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool AprsIsTask::connect(const System &system) {
|
||||
logPrintI("connecting to APRS-IS server: ");
|
||||
logPrintI(system.getUserConfig()->aprs_is.server);
|
||||
logPrintI(" on port: ");
|
||||
logPrintlnI(String(system.getUserConfig()->aprs_is.port));
|
||||
bool AprsIsTask::connect(System &system) {
|
||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "connecting to APRS-IS server: %s on port: %d", system.getUserConfig()->aprs_is.server, system.getUserConfig()->aprs_is.port);
|
||||
if (!_aprs_is.connect(system.getUserConfig()->aprs_is.server, system.getUserConfig()->aprs_is.port)) {
|
||||
logPrintlnE("Connection failed.");
|
||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, getName(), "Connection failed.");
|
||||
return false;
|
||||
}
|
||||
logPrintlnI("Connected to APRS-IS server!");
|
||||
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "Connected to APRS-IS server!");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ private:
|
|||
|
||||
TaskQueue<std::shared_ptr<APRSMessage>> &_toAprsIs;
|
||||
|
||||
bool connect(const System &system);
|
||||
bool connect(System &system);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue