puts statements should not be committed. Replace puts with logger.debug