mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-07-05 13:48:53 +00:00
refactor writeLogEntry: include timestamp in log output for better traceability
This commit is contained in:
parent
020772725b
commit
f7522faf5c
1 changed files with 1 additions and 1 deletions
|
@ -46,6 +46,6 @@ void writeLogEntry(const log_level level, const char *tag, const char *message,
|
|||
char *buffer = new char[size + 1];
|
||||
va_start(args, message);
|
||||
vsnprintf(buffer, size + 1, message, args);
|
||||
Serial.printf("[%s][%s]> %s\n", getLogLevelString(level), tag, buffer);
|
||||
Serial.printf("[%s][%s](%d)> %s\n", getLogLevelString(level), tag, millis(), buffer);
|
||||
delete[] buffer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue