Skip to content

Commit 9432a20

Browse files
fix(spiffs): Adjust log level during SPIFFS formatting (espressif#11929)
Set log level to none during formatting and restore afterwards. Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
1 parent 298e40c commit 9432a20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SPIFFS/src/SPIFFS.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ void SPIFFSFS::end() {
9191
}
9292

9393
bool SPIFFSFS::format() {
94+
esp_log_level_set("*", ESP_LOG_NONE);
9495
bool wdt_active = disableCore0WDT();
9596
esp_err_t err = esp_spiffs_format(partitionLabel_);
9697
if (wdt_active) {
9798
enableCore0WDT();
9899
}
100+
esp_log_level_set("*", (esp_log_level_t)CONFIG_LOG_DEFAULT_LEVEL);
99101
if (err) {
100102
log_e("Formatting SPIFFS failed! Error: %d", err);
101103
return false;

0 commit comments

Comments
 (0)