You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Jon Skeet <jo...@peramon.com> on 2001/09/05 14:51:50 UTC
[PATCH] src/java/org/apache/log4j/net/SMTPAppender.java
[Patch below for ease of checking and attached as text file for ease of
applying.]
SMTPAppender previously changed the system properties rather than
creating a new Properties object using System.getProperties as a
default. This patch corrects that behaviour.
Jon
--- SMTPAppender.java.orig Wed Sep 5 13:41:49 2001
+++ SMTPAppender.java Wed Sep 5 13:47:22 2001
@@ -84,7 +84,7 @@
recipient, from, etc. */
public
void activateOptions() {
- Properties props = System.getProperties();
+ Properties props = new Properties (System.getProperties());
if (smtpHost != null)
props.put("mail.smtp.host", smtpHost);