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
8977d365
Commit
8977d365
authored
Aug 01, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove similar code on Geo::EventStore
parent
45bc7d93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
app/services/geo/event_store.rb
app/services/geo/event_store.rb
+9
-4
app/services/geo/repositories_changed_event_store.rb
app/services/geo/repositories_changed_event_store.rb
+4
-6
No files found.
app/services/geo/event_store.rb
View file @
8977d365
...
...
@@ -44,12 +44,17 @@ module Geo
end
def
log_error
(
message
,
error
)
Gitlab
::
Geo
::
Logger
.
error
(
Gitlab
::
Geo
::
Logger
.
error
(
{
class:
self
.
class
.
name
,
message:
message
,
error:
error
,
message:
message
,
error:
error
}.
merge
(
log_params
))
end
def
log_params
{
project_id:
project
.
id
,
project_path:
project
.
full_path
)
project_path:
project
.
full_path
}
end
end
end
app/services/geo/repositories_changed_event_store.rb
View file @
8977d365
...
...
@@ -14,13 +14,11 @@ module Geo
Geo
::
RepositoriesChangedEvent
.
new
(
geo_node:
geo_node
)
end
def
log_error
(
message
,
error
)
Gitlab
::
Geo
::
Logger
.
error
(
class:
self
.
class
.
name
,
message:
message
,
error:
error
,
def
log_params
{
geo_node_id:
geo_node
.
id
,
geo_node_url:
geo_node
.
url
)
geo_node_url:
geo_node
.
url
}
end
end
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