@@ -291,7 +291,7 @@ int8_t Preferences::getChar(const char* key, const int8_t defaultValue){
291
291
}
292
292
esp_err_t err = nvs_get_i8 (_handle, key, &value);
293
293
if (err){
294
- log_e (" nvs_get_i8 fail: %s %s" , key, nvs_error (err));
294
+ log_v (" nvs_get_i8 fail: %s %s" , key, nvs_error (err));
295
295
}
296
296
return value;
297
297
}
@@ -303,7 +303,7 @@ uint8_t Preferences::getUChar(const char* key, const uint8_t defaultValue){
303
303
}
304
304
esp_err_t err = nvs_get_u8 (_handle, key, &value);
305
305
if (err){
306
- log_e (" nvs_get_u8 fail: %s %s" , key, nvs_error (err));
306
+ log_v (" nvs_get_u8 fail: %s %s" , key, nvs_error (err));
307
307
}
308
308
return value;
309
309
}
@@ -315,7 +315,7 @@ int16_t Preferences::getShort(const char* key, const int16_t defaultValue){
315
315
}
316
316
esp_err_t err = nvs_get_i16 (_handle, key, &value);
317
317
if (err){
318
- log_e (" nvs_get_i16 fail: %s %s" , key, nvs_error (err));
318
+ log_v (" nvs_get_i16 fail: %s %s" , key, nvs_error (err));
319
319
}
320
320
return value;
321
321
}
@@ -327,7 +327,7 @@ uint16_t Preferences::getUShort(const char* key, const uint16_t defaultValue){
327
327
}
328
328
esp_err_t err = nvs_get_u16 (_handle, key, &value);
329
329
if (err){
330
- log_e (" nvs_get_u16 fail: %s %s" , key, nvs_error (err));
330
+ log_v (" nvs_get_u16 fail: %s %s" , key, nvs_error (err));
331
331
}
332
332
return value;
333
333
}
@@ -339,7 +339,7 @@ int32_t Preferences::getInt(const char* key, const int32_t defaultValue){
339
339
}
340
340
esp_err_t err = nvs_get_i32 (_handle, key, &value);
341
341
if (err){
342
- log_e (" nvs_get_i32 fail: %s %s" , key, nvs_error (err));
342
+ log_v (" nvs_get_i32 fail: %s %s" , key, nvs_error (err));
343
343
}
344
344
return value;
345
345
}
@@ -351,7 +351,7 @@ uint32_t Preferences::getUInt(const char* key, const uint32_t defaultValue){
351
351
}
352
352
esp_err_t err = nvs_get_u32 (_handle, key, &value);
353
353
if (err){
354
- log_e (" nvs_get_u32 fail: %s %s" , key, nvs_error (err));
354
+ log_v (" nvs_get_u32 fail: %s %s" , key, nvs_error (err));
355
355
}
356
356
return value;
357
357
}
@@ -371,7 +371,7 @@ int64_t Preferences::getLong64(const char* key, const int64_t defaultValue){
371
371
}
372
372
esp_err_t err = nvs_get_i64 (_handle, key, &value);
373
373
if (err){
374
- log_e (" nvs_get_i64 fail: %s %s" , key, nvs_error (err));
374
+ log_v (" nvs_get_i64 fail: %s %s" , key, nvs_error (err));
375
375
}
376
376
return value;
377
377
}
@@ -383,7 +383,7 @@ uint64_t Preferences::getULong64(const char* key, const uint64_t defaultValue){
383
383
}
384
384
esp_err_t err = nvs_get_u64 (_handle, key, &value);
385
385
if (err){
386
- log_e (" nvs_get_u64 fail: %s %s" , key, nvs_error (err));
386
+ log_v (" nvs_get_u64 fail: %s %s" , key, nvs_error (err));
387
387
}
388
388
return value;
389
389
}
0 commit comments