Replaced IO.puts with :error_logger.info_msg