diff --git a/.gitignore b/.gitignore index 5919645..00f2906 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ tmp/ +testing/ dist/ node_modules/ .env diff --git a/dash/.gitignore b/dash/.gitignore index a547bf3..019e1dc 100644 --- a/dash/.gitignore +++ b/dash/.gitignore @@ -1,5 +1,4 @@ # Logs -logs *.log npm-debug.log* yarn-debug.log* diff --git a/dash/src/components/applications/live-logs-viewer.tsx b/dash/src/components/applications/live-logs-viewer.tsx index c9bbe1f..736ee4e 100644 --- a/dash/src/components/applications/live-logs-viewer.tsx +++ b/dash/src/components/applications/live-logs-viewer.tsx @@ -3,6 +3,7 @@ import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { useContainerLogs } from "@/hooks" +import { LogLine } from "@/components/logs/log-line" import { Loader2, Wifi, @@ -63,7 +64,7 @@ export const LiveLogsViewer = ({ appId, enabled = true }: LiveLogsViewerProps) = }, []) const downloadLogs = () => { - const logText = logs.join("\n") + const logText = logs.map(log => log.line).join("\n") const blob = new Blob([logText], { type: "text/plain" }) const url = URL.createObjectURL(blob) const a = document.createElement("a") @@ -176,19 +177,17 @@ export const LiveLogsViewer = ({ appId, enabled = true }: LiveLogsViewerProps) = <>