Block a user
Notifications on crash / error, etc
Added at
src/main/java/de/mattv/fileserver/ExceptionHandler.java
Lines 29 to 41 in 5306a1e682
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(); |
|
} |
Select mpris player by scrolling on widget