Debug for using logger.

This commit is contained in:
FUJIURA Toyonori 2022-03-21 08:28:06 +09:00
parent d0deb99668
commit 2ce81ed3f2

View file

@ -95,7 +95,7 @@ void BeaconTask::setBeacon(System &system) {
}
_beaconMsg->getBody()->setData(String("=") + create_lat_aprs(lat) + "L" + create_long_aprs(lng) + "&" + system.getUserConfig()->beacon.message);
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "[%s]%s", timeString(), _beaconMsg->encode());
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "[%s]%s", timeString().c_str(), _beaconMsg->encode().c_str());
if (system.getUserConfig()->aprs_is.active)
_toAprsIs.addElement(_beaconMsg);