Skip to content

Commit

Permalink
[photon-server] Fix journal-ctl export bug (#970)
Browse files Browse the repository at this point in the history
* Update Server.java

* And this
  • Loading branch information
srimanachanta committed Oct 20, 2023
1 parent 25a4f24 commit 89908fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const handleSettingsImport = () => {
<a
ref="exportLogFile"
style="color: black; text-decoration: none; display: none"
:href="'http://' + address + '/api/utils/logs/photonvision-journalctl.txt'"
:href="`http://${address}/api/utils/photonvision-journalctl.txt`"
download="photonvision-journalctl.txt"
target="_blank"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static void start(int port) {

// Utilities
app.post("/api/utils/offlineUpdate", RequestHandler::onOfflineUpdateRequest);
app.get("/api/utils/logs/photonvision-journalctl.txt", RequestHandler::onLogExportRequest);
app.get("/api/utils/photonvision-journalctl.txt", RequestHandler::onLogExportRequest);
app.post("/api/utils/restartProgram", RequestHandler::onProgramRestartRequest);
app.post("/api/utils/restartDevice", RequestHandler::onDeviceRestartRequest);
app.post("/api/utils/publishMetrics", RequestHandler::onMetricsPublishRequest);
Expand Down

0 comments on commit 89908fc

Please sign in to comment.