We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54662d8 commit 79caa9eCopy full SHA for 79caa9e
contrib/hooks/post-receive/lib/git_hosting_post_receive.rb
@@ -26,7 +26,6 @@ def exec
26
def notify_redmine
27
logger.info('')
28
logger.info("Notifying Redmine about changes to this repository : '#{git_config.repository_name}' ...")
29
- logger.info('')
30
31
opts = {}
32
opts[:params] = http_post_data
@@ -36,7 +35,9 @@ def notify_redmine
36
35
http.request(request) do |response|
37
if response.code.to_i == 200
38
response.read_body do |body_frag|
39
- logger.info(body_frag)
+ body_frag.split("\n").each do |line|
+ logger.info(line)
40
+ end
41
end
42
else
43
logger.error(" - Error while notifying Redmine ! (status code: #{response.code})")
0 commit comments