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
5f7e671f
Commit
5f7e671f
authored
Apr 03, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pages-debug-log' into 'master'
Log errors in UpdatePagesService See merge request !10335
parents
d9aca741
b700a84e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
app/services/base_service.rb
app/services/base_service.rb
+4
-0
app/services/projects/update_pages_service.rb
app/services/projects/update_pages_service.rb
+1
-0
changelogs/unreleased/pages-debug-log.yml
changelogs/unreleased/pages-debug-log.yml
+4
-0
No files found.
app/services/base_service.rb
View file @
5f7e671f
...
@@ -24,6 +24,10 @@ class BaseService
...
@@ -24,6 +24,10 @@ class BaseService
Gitlab
::
AppLogger
.
info
message
Gitlab
::
AppLogger
.
info
message
end
end
def
log_error
(
message
)
Gitlab
::
AppLogger
.
error
message
end
def
system_hook_service
def
system_hook_service
SystemHooksService
.
new
SystemHooksService
.
new
end
end
...
...
app/services/projects/update_pages_service.rb
View file @
5f7e671f
...
@@ -46,6 +46,7 @@ module Projects
...
@@ -46,6 +46,7 @@ module Projects
end
end
def
error
(
message
,
http_status
=
nil
)
def
error
(
message
,
http_status
=
nil
)
log_error
(
"Projects::UpdatePagesService:
#{
message
}
"
)
@status
.
allow_failure
=
!
latest?
@status
.
allow_failure
=
!
latest?
@status
.
description
=
message
@status
.
description
=
message
@status
.
drop
@status
.
drop
...
...
changelogs/unreleased/pages-debug-log.yml
0 → 100644
View file @
5f7e671f
---
title
:
Log errors during generating of Gitlab Pages to debug log
merge_request
:
10335
author
:
Danilo Bargen
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