adjust log levels

This commit is contained in:
Peter Buchegger 2021-05-09 23:09:07 +02:00
parent 86eef28702
commit c5fd0cc46c
4 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@ std::shared_ptr<BoardConfig> BoardFinder::searchBoardConfig() {
}
}
logPrintlnW("could not find OLED, will search for the modem now...");
logPrintlnI("could not find OLED, will search for the modem now...");
for (std::shared_ptr<BoardConfig> boardconf : _boardConfigs) {
if (boardconf->needCheckPowerChip && checkPowerConfig(boardconf) == boardconf->powerCheckStatus) {
@ -45,7 +45,7 @@ std::shared_ptr<BoardConfig> BoardFinder::searchBoardConfig() {
}
}
logPrintlnW("could not find a board config!");
logPrintlnE("could not find a board config!");
return 0;
}

View file

@ -4,7 +4,7 @@
ConfigurationManagement::ConfigurationManagement(String FilePath) : mFilePath(FilePath) {
if (!SPIFFS.begin(true)) {
logPrintlnE("Mounting SPIFFS was not possible. Trying to format SPIFFS...");
logPrintlnI("Mounting SPIFFS was not possible. Trying to format SPIFFS...");
SPIFFS.format();
if (!SPIFFS.begin()) {
logPrintlnE("Formating SPIFFS was not okay!");

View file

@ -30,13 +30,13 @@ std::list<std::shared_ptr<Task>> TaskManager::getTasks() {
bool TaskManager::setup(std::shared_ptr<System> system) {
logPrintlnV("will setup all tasks...");
for (std::shared_ptr<Task> &elem : _alwaysRunTasks) {
logPrintW("call setup from ");
logPrintlnW(elem->getName());
logPrintD("call setup from ");
logPrintlnD(elem->getName());
elem->setup(system);
}
for (std::shared_ptr<Task> &elem : _tasks) {
logPrintW("call setup from ");
logPrintlnW(elem->getName());
logPrintD("call setup from ");
logPrintlnD(elem->getName());
elem->setup(system);
}
_nextTask = _tasks.begin();

View file

@ -30,8 +30,8 @@ void setup() {
Serial.begin(115200);
Logger::instance().setSerial(&Serial);
delay(500);
logPrintlnW("LoRa APRS iGate by OE5BPA (Peter Buchegger)");
logPrintlnW("Version: " VERSION);
logPrintlnI("LoRa APRS iGate by OE5BPA (Peter Buchegger)");
logPrintlnI("Version: " VERSION);
std::list<std::shared_ptr<BoardConfig>> boardConfigs;
// clang-format off