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
b2a35fcc
Commit
b2a35fcc
authored
Jul 05, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log the error message when something went wrong creating a Geo event
parent
c7ef65ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/services/geo/event_store.rb
app/services/geo/event_store.rb
+4
-4
No files found.
app/services/geo/event_store.rb
View file @
b2a35fcc
...
...
@@ -32,8 +32,8 @@ module Geo
return
unless
Gitlab
::
Geo
.
primary?
Geo
::
EventLog
.
create!
(
"
#{
self
.
class
.
event_type
}
"
=>
build_event
)
rescue
ActiveRecord
::
RecordInvalid
,
NoMethodError
log
(
"
#{
self
.
event_type
.
to_s
.
humanize
}
could not be created"
)
rescue
ActiveRecord
::
RecordInvalid
,
NoMethodError
=>
e
log
(
"
#{
self
.
event_type
.
to_s
.
humanize
}
could not be created"
,
e
)
end
private
...
...
@@ -43,8 +43,8 @@ module Geo
"
#{
self
.
class
}
does not implement
#{
__method__
}
"
end
def
log
(
message
)
Rails
.
logger
.
error
(
"
#{
self
.
class
.
name
}
:
#{
message
}
for project
#{
project
.
path_with_namespace
}
(
#{
project
.
id
}
)"
)
def
log
(
message
,
error
)
Rails
.
logger
.
error
(
"
#{
self
.
class
.
name
}
:
#{
message
}
for project
#{
project
.
path_with_namespace
}
(
#{
project
.
id
}
)
:
#{
error
}
"
)
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