Notifications on crash / error, etc #54

Closed
opened 2023-02-05 15:51:27 +00:00 by root · 3 comments
root commented 2023-02-05 15:51:27 +00:00 (Migrated from gitlab.mattv.de)
No description provided.
root commented 2023-02-05 15:51:27 +00:00 (Migrated from gitlab.mattv.de)

assigned to @root

assigned to @root

// TODO Send mail to admin on crash

https://gitea.mattv.de/root/fileserver/src/commit/023ef2ec49f87a862586c440005c08303f1da619/src/util/crash.hxx#L8

Added at

if (!gotifyToken.isEmpty() && !gotifyUrl.isEmpty()) {
if (restClient == null)
restClient = RestClient.builder().baseUrl(gotifyUrl).build();
StringWriter writer = new StringWriter();
PrintWriter printWriter = new PrintWriter(writer);
ex.printStackTrace(printWriter);
printWriter.flush();
restClient.post()
.uri("/message?token=" + gotifyToken)
.body(new GotifyMessage("Encountered an error", writer.toString()))
.retrieve();
}

Added at https://gitea.mattv.de/root/fileserver/src/commit/5306a1e6826762ae89065f5c542a8e51a9308361/src/main/java/de/mattv/fileserver/ExceptionHandler.java#L29-L41
root closed this issue 2024-08-31 20:16:02 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/fileserver#54
No description provided.