Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Remove logging and update hidden token message
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed Sep 2, 2023
1 parent e07212e commit 6363010
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 @@ -138,6 +138,6 @@ public void shutdownPC() {
public String messageWithHiddenToken(String message) {
return Optional.ofNullable(this.unicacityAddon.api().getToken())
.map(s -> message.replace(s, "TOKEN"))
.orElse("Aus Sicherheitsgründen kann diese Nachricht nicht angezeigt werden.");
.orElse("Message cannot be displayed because it contains a token.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public String sendApiRequest(boolean nonProd, ApplicationPath applicationPath, S

try {
int responseCode = httpURLConnection.getResponseCode();
this.unicacityAddon.utilService().debug("[API] [" + responseCode + "] " + this.unicacityAddon.utilService().messageWithHiddenToken(urlString));
// this.unicacityAddon.utilService().debug("[API] [" + responseCode + "] " + this.unicacityAddon.utilService().messageWithHiddenToken(urlString));

if (responseCode >= 200 && responseCode < 300) {
// return body
Expand Down

0 comments on commit 6363010

Please sign in to comment.