mirror of
https://github.com/esphome/esphome.git
synced 2025-09-24 22:22:22 +01:00
print task name if logger is called from other than main thread (#6630)
This commit is contained in:
@@ -167,6 +167,7 @@ class Logger : public Component {
|
||||
CallbackManager<void(int, const char *, const char *)> log_callback_{};
|
||||
/// Prevents recursive log calls, if true a log message is already being processed.
|
||||
bool recursion_guard_ = false;
|
||||
void *main_task_ = nullptr;
|
||||
};
|
||||
|
||||
extern Logger *global_logger; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
Reference in New Issue
Block a user