Skip to content

Commit 56a9b5f

Browse files
Frontend: update log downloader to dump latest journal, too
1 parent 420e292 commit 56a9b5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/frontend/src/components/app/SettingsMenu.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ export default Vue.extend({
242242
return prettifySize(bytes)
243243
},
244244
async download_service_log_files(): Promise<void> {
245+
// TODO: this should probably be done more on the backend than here...
246+
// This is currently done here as we are relying on the filebrowser's
247+
// on-the-fly download feature.
248+
const command = 'dump_journal.py'
249+
await back_axios({
250+
url: `${API_URL}/command/blueos?command=${command}&i_know_what_i_am_doing=true`,
251+
method: 'post',
252+
})
245253
const folder = await filebrowser.fetchFolder('system_logs')
246254
await filebrowser.downloadFolder(folder)
247255
},

0 commit comments

Comments
 (0)