Commit 5f7e671f authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'pages-debug-log' into 'master'

Log errors in UpdatePagesService

See merge request !10335
parents d9aca741 b700a84e
...@@ -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
......
...@@ -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
......
---
title: Log errors during generating of Gitlab Pages to debug log
merge_request: 10335
author: Danilo Bargen
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment