void () { if (myStartTime > 0) { long time = System.currentTimeMillis() - myStartTime; if (!TIME_LOG.isDebugEnabled() && time > LONG_TIME) { LOG.info(String.format("git %s took %s ms. Command parameters: %n%s", myCommand, time, myCommandLine.getCommandLineString())); } else { TIME_LOG.debug(String.format("git %s took %s ms", myCommand, time)); } } else { LOG.debug(String.format("git %s finished.", myCommand)); } }