Commit 05e15c27 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'app-logger-7' into 'master'

Use applogger in spec/lib/ee/gitlab/

See merge request gitlab-org/gitlab!41053
parents d72cfb31 dea78596
---
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