commits@javamail.java.net

[mercurial:106] Add "trying to connect to" debug message, like all the other protocols.

From: <shannon_at_kenai.com>
Date: Mon, 9 Feb 2009 19:41:00 +0000 (GMT)

Repository: mercurial
Revision: 106
Author: Bill Shannon <bill.shannon_at_sun.com>
Date: 2009-02-04 23:55:46 UTC

Log Message:
-----------
Add "trying to connect to" debug message, like all the other protocols.

Modified Paths:
--------------
    mail/src/main/java/com/sun/mail/imap/IMAPStore.java

Diffs:
-----
diff -r f33d7749d7ea -r 6459dc681c86
mail/src/main/java/com/sun/mail/imap/IMAPStore.java
--- a/mail/src/main/java/com/sun/mail/imap/IMAPStore.java Tue Feb
03 12:08:18 2009 -0800
+++ b/mail/src/main/java/com/sun/mail/imap/IMAPStore.java Wed Feb
04 15:55:46 2009 -0800
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of either the
GNU
  * General Public License Version 2 only ("GPL") or the Common
Development
@@ -572,6 +572,9 @@
             }
 
             if (poolEmpty) {
+ if (debug)
+ out.println("DEBUG: trying to connect to host \"" +
host +
+ "\", port " + port + ", isSSL " +
isSSL);
                 protocol = new IMAPProtocol(name, host, port,
                                            session.getDebug(),
                                            session.getDebugOut(),