打印信息
This commit is contained in:
parent
c24ae86a6f
commit
6a53d93537
|
@ -612,7 +612,7 @@ module ProjectsHelper
|
|||
"projects": [
|
||||
{
|
||||
"source": {
|
||||
"location": "https://github.com/looly/hutool.git",
|
||||
"location": "http://git.trustie.net/hudongyang/che_test.git",
|
||||
"type": "git",
|
||||
"parameters": {}
|
||||
},
|
||||
|
@ -652,7 +652,7 @@ module ProjectsHelper
|
|||
}
|
||||
],
|
||||
"defaultEnv": "default",
|
||||
"name": "create-from-api",
|
||||
"name": "test_for_trustie",
|
||||
"links": []
|
||||
}
|
||||
|
||||
|
@ -666,7 +666,8 @@ module ProjectsHelper
|
|||
request.body = params.to_json
|
||||
request['Content-Type'] = 'application/json;charset=utf-8'
|
||||
response = http.start { |http| http.request(request) }
|
||||
ActiveSupport::JSON.decode(response.body)
|
||||
response = ActiveSupport::JSON.decode(response.body)
|
||||
Rails.logger.info("#############response: #{response}")
|
||||
rescue =>err
|
||||
Rails.logger.error("#############send_error: #{err.message}")
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue