Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Typo in syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP authored Apr 17, 2021
1 parent db72904 commit 12bcdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uuid-syslog/src/syslog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ bool SyslogService::transmit(const QueuedLogMessage & message) {
udp_.printf_P(PSTR("<%u>1 "), ((unsigned int)message.content_->facility * 8) + std::min(7U, (unsigned int)message.content_->level));

if (tm.tm_year != 0) {
udp_.printf_P(PSTR("%04u-%02u-%02uT%02u:%02u:%02u.%06lu%+02:00"),
udp_.printf_P(PSTR("%04u-%02u-%02uT%02u:%02u:%02u.%06lu%+02d:00"),
tm.tm_year + 1900,
tm.tm_mon + 1,
tm.tm_mday,
Expand All @@ -422,7 +422,7 @@ bool SyslogService::transmit(const QueuedLogMessage & message) {
}

// udp_.printf_P(PSTR(" %s - - - - \xEF\xBB\xBF"), hostname_.c_str());
udp_.printf_P(PSTR(" %s %s: - - - \xEF\xBB\xBF"), hostname_.c_str(), uuid::read_flash_string( message.content_->name).c_str());
udp_.printf_P(PSTR(" %s %s: - - - \xEF\xBB\xBF"), hostname_.c_str(), uuid::read_flash_string(message.content_->name).c_str());

udp_.print(uuid::log::format_timestamp_ms(message.content_->uptime_ms, 3).c_str());

Expand Down

0 comments on commit 12bcdc8

Please sign in to comment.