обновил журналирование для разработчиков

This commit is contained in:
2025-01-30 11:25:26 +03:00
parent a59c8e48d9
commit f8b5605ac3
2 changed files with 10 additions and 5 deletions

View File

@@ -190,7 +190,7 @@
fetch(`/dev/logs.csv`, {method: 'GET', credentials: 'same-origin' })
.then(async (resp) => {
let logfileContent = await resp.text()
const lines = logfileContent.split(/\r\n|\n/)
const lines = logfileContent.trim().split(/\r\n|\n/)
// Первая строка содержит заголовки
this.logsTable.headers = lines.shift().split('\t')