Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dea78596
Commit
dea78596
authored
Sep 09, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use applogger in spec/lib/ee/gitlab/
parent
1d87f668
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/app-logger-7.yml
changelogs/unreleased/app-logger-7.yml
+5
-0
ee/lib/pseudonymizer/pager.rb
ee/lib/pseudonymizer/pager.rb
+2
-2
No files found.
changelogs/unreleased/app-logger-7.yml
0 → 100644
View file @
dea78596
---
title
:
Use applogger in spec/lib/ee/gitlab/
merge_request
:
41053
author
:
Rajendra Kadam
type
:
other
ee/lib/pseudonymizer/pager.rb
View file @
dea78596
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment