Rework logging
Some checks failed
Test compiling project / test (push) Failing after 1m34s

This commit is contained in:
2025-03-10 23:33:41 +01:00
parent 374b23d99a
commit eeaac9548e
12 changed files with 111 additions and 121 deletions

View File

@@ -17,7 +17,7 @@ void listNetworkInterfaces() {
}
void setEthernetAsDefault() {
Log.verbose("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
logger.log(0, DEBUG, "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
listNetworkInterfaces();
// Attempt to locate the Ethernet network interface.
// (The name may vary—on some systems it might be "eth0")
@@ -31,8 +31,8 @@ void setEthernetAsDefault() {
struct netif *eth_netif2 = netif_find("ETH_DEF");
if (netif) {
netif_set_default(eth_netif2);
Log.verbose("Ethernet set as default network interface.");
logger.log(0, DEBUG, "Ethernet set as default network interface.");
} else {
Log.verbose("Could not find Ethernet netif.");
logger.log(0, DEBUG, "Could not find Ethernet netif.");
}
}