mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	remove workaround
This commit is contained in:
		| @@ -130,15 +130,6 @@ inline int Logger::level_for(const char *tag) { | |||||||
| } | } | ||||||
|  |  | ||||||
| void HOT Logger::call_log_callbacks_(int level, const char *tag, const char *msg) { | void HOT Logger::call_log_callbacks_(int level, const char *tag, const char *msg) { | ||||||
| #ifdef USE_ESP32 |  | ||||||
|   // Suppress network-logging if memory constrained |  | ||||||
|   // In some configurations (eg BLE enabled) there may be some transient |  | ||||||
|   // memory exhaustion, and trying to log when OOM can lead to a crash. Skipping |  | ||||||
|   // here usually allows the stack to recover instead. |  | ||||||
|   // See issue #1234 for analysis. |  | ||||||
|   if (xPortGetFreeHeapSize() < 2048) |  | ||||||
|     return; |  | ||||||
| #endif |  | ||||||
|   this->log_callback_.call(level, tag, msg); |   this->log_callback_.call(level, tag, msg); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user