mirror of
https://github.com/esphome/esphome.git
synced 2025-08-05 09:57:47 +00:00
Update esphome/components/syslog/esphome_syslog.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d592ba2c5e
commit
abd33c21bf
@ -36,7 +36,7 @@ void Syslog::log_(const int level, const char *tag, const char *message, size_t
|
||||
}
|
||||
int pri = this->facility_ * 8 + severity;
|
||||
auto timestamp = this->time_->now().strftime("%b %d %H:%M:%S");
|
||||
unsigned len = message_len;
|
||||
size_t len = message_len;
|
||||
// remove color formatting
|
||||
if (this->strip_ && message[0] == 0x1B && len > 11) {
|
||||
message += 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user