Skip to content

Commit e1b114a

Browse files
authored
Merge pull request #1264 from Dokploy/1202-dates-are-not-shown-in-logs
fix: don't cut log
2 parents 1c0f6a8 + 0b4d19a commit e1b114a

File tree

1 file changed

+1
-9
lines changed
  • apps/dokploy/components/dashboard/docker/logs

1 file changed

+1
-9
lines changed

apps/dokploy/components/dashboard/docker/logs/utils.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,10 @@ export function parseLogs(logString: string): LogLine[] {
6363

6464
if (!message?.trim()) return null;
6565

66-
// Delete other timestamps and keep only the one from --timestamps
67-
const cleanedMessage = message
68-
?.replace(
69-
/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z|\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3} UTC/g,
70-
"",
71-
)
72-
.trim();
73-
7466
return {
7567
rawTimestamp: timestamp ?? null,
7668
timestamp: timestamp ? new Date(timestamp.replace(" UTC", "Z")) : null,
77-
message: cleanedMessage,
69+
message: message.trim(),
7870
};
7971
})
8072
.filter((log) => log !== null);

0 commit comments

Comments
 (0)