Commit dea78596 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Use applogger in spec/lib/ee/gitlab/

parent 1d87f668
---
title: Use applogger in spec/lib/ee/gitlab/
merge_request: 41053
author: Rajendra Kadam
type: other
......@@ -31,7 +31,7 @@ module Pseudonymizer
ORDER BY id
LIMIT #{PAGE_SIZE}
SQL
Rails.logger.debug("#{self.class.name} fetch ids [#{id_offset}..+#{PAGE_SIZE}]") # rubocop:disable Gitlab/RailsLogger
Gitlab::AppLogger.debug("#{self.class.name} fetch ids [#{id_offset}..+#{PAGE_SIZE}]")
break if results.empty?
id_offset = results.last["id"].to_i
......@@ -52,7 +52,7 @@ module Pseudonymizer
ORDER BY #{@columns.join(",")}
LIMIT #{PAGE_SIZE} OFFSET #{offset}
SQL
Rails.logger.debug("#{self.class.name} fetching offset [#{offset}..#{offset + PAGE_SIZE}]") # rubocop:disable Gitlab/RailsLogger
Gitlab::AppLogger.debug("#{self.class.name} fetching offset [#{offset}..#{offset + PAGE_SIZE}]")
break if results.empty?
offset += PAGE_SIZE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment