Skip to content

Commit 84e0f58

Browse files
authored
Merge pull request #3164 from difagume/fix/log-warning-detection
fix(docker-logs): fix warning symbol detection
2 parents 2bfa464 + 698104e commit 84e0f58

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export const getLogType = (message: string): LogStyle => {
108108
/(?:might|may|could)\s+(?:not|cause|lead\s+to)/i.test(lowerMessage) ||
109109
/(?:!+\s*(?:warning|caution|attention)\s*!+)/i.test(lowerMessage) ||
110110
/\b(?:deprecated|obsolete)\b/i.test(lowerMessage) ||
111-
/\b(?:unstable|experimental)\b/i.test(lowerMessage)
111+
/\b(?:unstable|experimental)\b/i.test(lowerMessage) ||
112+
/|/i.test(lowerMessage)
112113
) {
113114
return LOG_STYLES.warning;
114115
}

0 commit comments

Comments
 (0)