mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-26 22:37:13 -05:00
Include ERT packet type in ert.txt log file
This commit is contained in:
parent
44b2e5ea61
commit
6cdada1118
@ -63,7 +63,8 @@ std::string commodity_type(CommodityType value) {
|
|||||||
|
|
||||||
void ERTLogger::on_packet(const ert::Packet& packet) {
|
void ERTLogger::on_packet(const ert::Packet& packet) {
|
||||||
const auto formatted = packet.symbols_formatted();
|
const auto formatted = packet.symbols_formatted();
|
||||||
log_file.write_entry(packet.received_at(), formatted.data + "/" + formatted.errors);
|
std::string entry = ert::format::type(packet.type()) + " " + formatted.data + "/" + formatted.errors;
|
||||||
|
log_file.write_entry(packet.received_at(), entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
const ERTRecentEntry::Key ERTRecentEntry::invalid_key { };
|
const ERTRecentEntry::Key ERTRecentEntry::invalid_key { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user