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
77cc86e1
Commit
77cc86e1
authored
Jul 29, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "No need to use Gitlab::Geo::LogHelpers in EventGapTracking"
This reverts commit
f4078760
.
parent
f4078760
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/lib/gitlab/geo/event_gap_tracking.rb
ee/lib/gitlab/geo/event_gap_tracking.rb
+2
-1
ee/spec/lib/gitlab/geo/event_gap_tracking_spec.rb
ee/spec/lib/gitlab/geo/event_gap_tracking_spec.rb
+1
-2
No files found.
ee/lib/gitlab/geo/event_gap_tracking.rb
View file @
77cc86e1
...
...
@@ -2,6 +2,7 @@ module Gitlab
module
Geo
class
EventGapTracking
include
Utils
::
StrongMemoize
include
::
Gitlab
::
Geo
::
LogHelpers
attr_accessor
:previous_id
...
...
@@ -60,7 +61,7 @@ module Gitlab
end
def
track_gaps
(
current_id
)
log
ger
.
info
(
"Event log gap detected"
,
previous_event_id:
previous_id
,
current_event_id:
current_id
)
log
_
info
(
"Event log gap detected"
,
previous_event_id:
previous_id
,
current_event_id:
current_id
)
with_redis
do
|
redis
|
expire_time
=
Time
.
now
.
to_i
...
...
ee/spec/lib/gitlab/geo/event_gap_tracking_spec.rb
View file @
77cc86e1
...
...
@@ -104,8 +104,7 @@ describe Gitlab::Geo::EventGapTracking, :clean_gitlab_redis_cache do
describe
'#track_gaps'
do
it
'logs a message'
do
expect
(
Gitlab
::
Geo
::
Logger
).
to
receive
(
:info
)
.
with
(
/gap detected/
,
hash_including
(
previous_event_id:
previous_event_id
,
current_event_id:
event_id_with_gap
))
expect
(
gap_tracking
).
to
receive
(
:log_info
).
with
(
/gap detected/
,
hash_including
(
previous_event_id:
previous_event_id
,
current_event_id:
event_id_with_gap
))
gap_tracking
.
track_gaps
(
event_id_with_gap
)
end
...
...
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