]> jaekl.net Git - cfb.git/commitdiff
Add debug logging.
authorChris Jaekl <cejaekl@yahoo.com>
Sun, 1 Nov 2015 05:24:45 +0000 (14:24 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Sun, 1 Nov 2015 05:24:45 +0000 (14:24 +0900)
prod/net/jaekl/cfb/Config.java

index 8aa423419ef74ab08fee0c9764124d9215ba5b72..9a0a1463ddda835b454e06723834470d446de1ed 100644 (file)
@@ -92,6 +92,31 @@ public class Config {
                        String[] addresses = props.getProperty(NOTIFY).split(",");
                        m_notify = Arrays.asList(addresses);
                }
+               
+               try (PrintWriter pw = new PrintWriter(System.out)) {
+                       dump(pw);                       
+               }
+       }
+       
+       private void dump(PrintWriter pw)
+       {
+               pw.println("CONFIG DUMP:");
+               pw.println("db_name: " + m_dbName);
+               pw.println("fbp:  " + m_fbp);
+               pw.println("fbDir:  " + m_fbDir);
+               pw.println("host:  " + m_host);
+               pw.println("port:  " + m_port);
+               pw.println("user:  " + m_user);
+               pw.println("pass:  " + m_pass);
+               pw.println("buildNum:  " + m_buildNum);
+               pw.println("removeSchema:  " + m_removeSchema);
+               pw.println("output:  " + m_output);
+               pw.println("mailFrom:  " + m_mailFrom);
+               pw.println("smtpHost:  " + m_mailSmtpHost);
+               pw.println("notify:  " + m_notify.size() + " entries");
+               for (String s : m_notify) {
+                       pw.println("= " + s);
+               }
        }
        
        public Options createOptions() {