From: Chris Jaekl Date: Sun, 1 Nov 2015 05:24:45 +0000 (+0900) Subject: Add debug logging. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=8ba2cb126d4f11d1ae9c9286d55bd9f7b4164135;p=cfb.git Add debug logging. --- diff --git a/prod/net/jaekl/cfb/Config.java b/prod/net/jaekl/cfb/Config.java index 8aa4234..9a0a146 100644 --- a/prod/net/jaekl/cfb/Config.java +++ b/prod/net/jaekl/cfb/Config.java @@ -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() {