mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 00:45:23 +00:00
Log the body of the sign_certificate response, it'd be very useful for debugging.
This commit is contained in:
parent
ba7dd0f3dd
commit
4c257c8e7d
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user