diff -r 53020d0bd2e4 -r f5ed7c4efacc java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java Tue Dec 24 14:36:14 2013 +0100 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java Wed Dec 25 00:43:06 2013 +0100 @@ -44,6 +44,7 @@ private Configuration configuration; public static void main(String[] args) { + log.log(Level.FINE, "Starting " + Constants.PROGRAM_NAME); if (args.length == 0) { args = new String[]{CLIParser.Tokens.INFO_HELP}; @@ -56,6 +57,7 @@ CLIStarter starter = new CLIStarter(options); starter.installDefaultConfiguration(); starter.process(); + log.log(Level.FINE, "All done"); } catch (CLIParserException e) { log.log(Level.SEVERE, "Unable to parse CLI options", e); } catch (InvalidOptionsException e) { @@ -113,6 +115,7 @@ throw new ConfigurationException("Formatter is not configured: " + options.getFormatterName()); } else { try (DatabaseConnection c = dd.connect()) { + log.log(Level.FINE, "Database connected"); Formatter f = fd.getInstance(new FormatterContext(options.getOutputStream())); c.executeQuery(options.getSQLCommand(), f); } @@ -138,10 +141,11 @@ Constants.DIR.mkdir(); if (Constants.CONFIG_FILE.exists()) { - log.log(Level.FINE, "Config file already exists: {0}", Constants.CONFIG_FILE); + log.log(Level.FINER, "Config file already exists: {0}", Constants.CONFIG_FILE); } else { try { Functions.installResource(Constants.EXAMPLE_CONFIG_FILE, Constants.CONFIG_FILE); + log.log(Level.FINE, "Installing default config file: {0}", Constants.CONFIG_FILE); } catch (IOException e) { throw new ConfigurationException("Unable to write example configuration to " + Constants.CONFIG_FILE, e); }