mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 13:55:03 +00:00
feat: move log timestamp prepending to log message format; use native timestamps by default
This commit is contained in:
parent
9105495d72
commit
4179bc4ee1
3 changed files with 73 additions and 76 deletions
|
@ -131,9 +131,6 @@ export async function getLogMessage<TLogType extends keyof ILogTypeData>(
|
|||
|
||||
if (typeof formatted === "string") {
|
||||
formatted = formatted.trim();
|
||||
if (timestamp) {
|
||||
formatted = `\`[${timestamp}]\` ${formatted}`;
|
||||
}
|
||||
} else if (formatted != null) {
|
||||
formatted = validateAndParseMessageContent(formatted);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue