mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 23:00:26 +00:00
WIP: Switched to macros for build control of logs
This commit is contained in:
1 parent
cc25dbab8f
commit
518db13ec8
36 files changed
+719
-718
No files matched your search
+7
-7
@@ -83,7 +83,7 @@ void onPacket(const RNS::Bytes& data, const RNS::Packet& packet) {
|
||||
RNS::info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
RNS::info("onPacket: data: " + data.toHex());
|
||||
RNS::info("onPacket: text: \"" + data.toString() + "\"");
|
||||
//RNS::extreme("onPacket: " + packet.debugString());
|
||||
//TRACE("onPacket: " + packet.debugString());
|
||||
RNS::info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ void onPingPacket(const RNS::Bytes& data, const RNS::Packet& packet) {
|
||||
RNS::info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
RNS::info("onPingPacket: data: " + data.toHex());
|
||||
RNS::info("onPingPacket: text: \"" + data.toString() + "\"");
|
||||
//RNS::extreme("onPingPacket: " + packet.debugString());
|
||||
//TRACE("onPingPacket: " + packet.debugString());
|
||||
RNS::info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ void run_tests() {
|
||||
|
||||
try {
|
||||
|
||||
RNS::extreme("Running tests...");
|
||||
TRACE("Running tests...");
|
||||
RNS::LogLevel loglevel = RNS::loglevel();
|
||||
//RNS::loglevel(RNS::LOG_WARNING);
|
||||
RNS::loglevel(RNS::LOG_EXTREME);
|
||||
@@ -131,7 +131,7 @@ void run_tests() {
|
||||
//testCrypto();
|
||||
testPersistence();
|
||||
RNS::loglevel(loglevel);
|
||||
RNS::extreme("Finished running tests");
|
||||
TRACE("Finished running tests");
|
||||
//return;
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
@@ -258,14 +258,14 @@ void reticulum_setup() {
|
||||
RNS::head("Sending send packet...", RNS::LOG_EXTREME);
|
||||
send_packet.pack();
|
||||
#ifndef NDEBUG
|
||||
RNS::extreme("Test send_packet: " + send_packet.debugString());
|
||||
TRACE("Test send_packet: " + send_packet.debugString());
|
||||
#endif
|
||||
|
||||
RNS::head("Creating recv packet...", RNS::LOG_EXTREME);
|
||||
RNS::Packet recv_packet({RNS::Type::NONE}, send_packet.raw());
|
||||
recv_packet.unpack();
|
||||
#ifndef NDEBUG
|
||||
RNS::extreme("Test recv_packet: " + recv_packet.debugString());
|
||||
TRACE("Test recv_packet: " + recv_packet.debugString());
|
||||
#endif
|
||||
|
||||
RNS::head("Spoofing recv packet to destination...", RNS::LOG_EXTREME);
|
||||
@@ -333,7 +333,7 @@ void setup() {
|
||||
RNS::error("SPIFFS filesystem mount failed");
|
||||
}
|
||||
else {
|
||||
RNS::debug("SPIFFS filesystem is ready");
|
||||
DEBUG("SPIFFS filesystem is ready");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user