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
00d231c4
Commit
00d231c4
authored
Mar 23, 2018
by
Brett Walker
Committed by
Stan Hu
Mar 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use geo.log for secondary repository verification logging
parent
c2cb9a3d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
26 deletions
+8
-26
ee/app/controllers/ee/admin/logs_controller.rb
ee/app/controllers/ee/admin/logs_controller.rb
+1
-2
ee/app/services/geo/repository_verify_secondary_service.rb
ee/app/services/geo/repository_verify_secondary_service.rb
+2
-2
ee/changelogs/unreleased/5178-geo-verification-rename-log.yml
...hangelogs/unreleased/5178-geo-verification-rename-log.yml
+5
-0
ee/lib/gitlab/geo/repository_verification_log_helpers.rb
ee/lib/gitlab/geo/repository_verification_log_helpers.rb
+0
-13
ee/lib/gitlab/geo/repository_verification_logger.rb
ee/lib/gitlab/geo/repository_verification_logger.rb
+0
-9
No files found.
ee/app/controllers/ee/admin/logs_controller.rb
View file @
00d231c4
...
...
@@ -6,8 +6,7 @@ module EE::Admin::LogsController
def
loggers
strong_memoize
(
:loggers
)
do
super
+
[
Gitlab
::
GeoLogger
,
Gitlab
::
Geo
::
RepositoryVerificationLogger
Gitlab
::
GeoLogger
]
end
end
...
...
ee/app/services/geo/repository_verify_secondary_service.rb
View file @
00d231c4
module
Geo
class
RepositoryVerifySecondaryService
include
Gitlab
::
Geo
::
RepositoryVerification
LogHelpers
include
Gitlab
::
Geo
::
Project
LogHelpers
delegate
:project
,
to: :registry
...
...
@@ -66,7 +66,7 @@ module Geo
}
if
failure
log_error
(
failure
,
exception
,
type:
type
,
repository_
path:
repository_path
,
full_path:
path_to_repo
)
log_error
(
failure
,
exception
,
type:
type
,
repository_full_path:
path_to_repo
)
end
registry
.
update!
(
attrs
)
...
...
ee/changelogs/unreleased/5178-geo-verification-rename-log.yml
0 → 100644
View file @
00d231c4
---
title
:
Geo secondary repository verification messages now appear in geo.log
merge_request
:
5095
author
:
type
:
fixed
ee/lib/gitlab/geo/repository_verification_log_helpers.rb
deleted
100644 → 0
View file @
c2cb9a3d
module
Gitlab
module
Geo
module
RepositoryVerificationLogHelpers
include
ProjectLogHelpers
protected
def
geo_logger
Gitlab
::
Geo
::
RepositoryVerificationLogger
end
end
end
end
ee/lib/gitlab/geo/repository_verification_logger.rb
deleted
100644 → 0
View file @
c2cb9a3d
module
Gitlab
module
Geo
class
RepositoryVerificationLogger
<
::
Gitlab
::
Geo
::
Logger
def
self
.
file_name_noext
'geo_repository_verification'
end
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