Skip to content

Commit

Permalink
Mail / Log / Remove debug level
Browse files Browse the repository at this point in the history
Avoid displaying mail server configuration and other detailed information in the log.

```
DEBUG: JavaMail version 1.5.6
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
...
```
  • Loading branch information
fxprunayre committed May 16, 2024
1 parent a79641b commit 7ccd91d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/main/java/org/fao/geonet/util/MailUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,6 @@ private static void configureBasics(String hostName, Integer smtpPort,
email.setAuthenticator(new DefaultAuthenticator(username, password));
}


email.setDebug(true);

if (tls != null && tls) {
email.setStartTLSEnabled(tls);
email.setStartTLSRequired(tls);
Expand Down

0 comments on commit 7ccd91d

Please sign in to comment.