Move lots of debug logging to log.debug instead of log.error / System.err.println