Skip to content

Commit

Permalink
[OGUI-1425] Allow download of up to 1M logs (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
graduta authored Oct 5, 2023
1 parent 13e230c commit da54ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions InfoLogger/public/log/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,7 @@ export default class Log extends Observable {
if (this.list.length > 0) {

let fullContent = '';
if (this.limit < 100001) {
this.list.forEach((item) => fullContent += `${this.getLogAsTableRowString(item)}\n`);
}
this.list.forEach((item) => fullContent += `${this.getLogAsTableRowString(item)}\n`);

let visibleOnlyContent = '';
this.listLogsInViewportOnly().forEach((item) => {
Expand Down
2 changes: 1 addition & 1 deletion InfoLogger/public/log/commandLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const downloadButtonGroup = (log) =>
}
}, iconDataTransferDownload(), ' Download'),
h('.dropdown-menu', [
log.limit < 100001 && h('a.menu-item.m3.mv2.text-ellipsis', {
h('a.menu-item.m3.mv2.text-ellipsis', {
href: `data:application/octet;,${encodeURIComponent(log.download.fullContent)}`,
download: `InfoLog${new Date().toLocaleString()}.txt`,
onclick: () => log.removeLogDownloadContent()
Expand Down

0 comments on commit da54ba9

Please sign in to comment.