feat: return logs in csv format

This commit is contained in:
Taranto 2020-10-30 19:31:05 +00:00 committed by Josh Harvey
parent 542ba9f1b7
commit a108df0c4c
7 changed files with 65 additions and 13 deletions

View file

@ -185,8 +185,7 @@ const LogsDownloaderPopover = ({ name, query, args, title, getLogs }) => {
return moment(date).format('YYYY-MM-DD_HH-mm')
}
const text = logs.map(it => JSON.stringify(it)).join('\n')
const blob = new window.Blob([text], {
const blob = new window.Blob([logs], {
type: 'text/plain;charset=utf-8'
})