Log the body of the sign_certificate response, it'd be very useful for debugging.

This commit is contained in:
Pagan Gazzard 2014-10-17 15:50:54 +01:00 committed by Pablo Carranza Vélez
parent ba7dd0f3dd
commit 4c257c8e7d

View File

@ -82,7 +82,7 @@ module.exports = ->
if response.statusCode >= 400
throw body
console.log('Configuring VPN..')
console.log('Configuring VPN..', JSON.stringify(body))
vpnConf = fs.readFileAsync(__dirname + '/openvpn.conf.tmpl', 'utf8')
.then (tmpl) ->
fs.writeFileAsync('/data/client.conf', _.template(tmpl)(body))