mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 22:43:07 +01:00
allow to set the log level
This commit is contained in:
@@ -582,6 +582,8 @@ void setup() {
|
||||
uint8_t chipid[6];
|
||||
uint32_t id = 0;
|
||||
config.loadConfig();
|
||||
int level=config.getInt(config.logLevel,LOGLEVEL);
|
||||
logger.setLevel(level);
|
||||
bool fallbackSerial=false;
|
||||
#ifdef FALLBACK_SERIAL
|
||||
fallbackSerial=true;
|
||||
@@ -724,8 +726,8 @@ void setup() {
|
||||
GWSYNCHRONIZED(&mainLock);
|
||||
userCodeHandler.startUserTasks(MIN_USER_TASK);
|
||||
}
|
||||
logger.logDebug(GwLog::ERROR,"wifi AP pass: %s",config.getString(config.apPassword).c_str());
|
||||
logger.logDebug(GwLog::ERROR,"admin pass: %s",config.getString(config.adminPassword).c_str());
|
||||
logger.logString("wifi AP pass: %s",config.getString(config.apPassword).c_str());
|
||||
logger.logString("admin pass: %s",config.getString(config.adminPassword).c_str());
|
||||
logger.logDebug(GwLog::LOG,"setup done");
|
||||
}
|
||||
//*****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user