class KPM::DiagnosticFile

def retrieve_account_data(account_id)

def retrieve_account_data(account_id)
  @logger.info 'Retrieving account data for id: ' + account_id
  # this suppress the message of where it put the account file, this is to avoid confusion
  @logger.level = Logger::WARN
  account = KPM::Account.new(@config_file, @killbill_api_credentials, @killbill_credentials,
                             @killbill_url, @database_name,
                             @database_credentials, @database_host, @database_port, nil, @logger)
  export_file = account.export_data(account_id)
  final = TMP_DIR + File::Separator + ACCOUNT_FILE
  FileUtils.move(export_file, final)
  @logger.level = @original_logger_level
  final
end