Fix output format of VPN logs

This commit is contained in:
Petros Aggelatos 2013-12-23 04:33:38 +00:00 committed by Pablo Carranza Vélez
parent 12b3e194b5
commit 614b24c796

View File

@ -32,13 +32,13 @@ Promise.all([newUuid, oldUuid]).then(([newUuid, [oldUuid]]) ->
# Prefix and log all OpenVPN output
openvpn.stdout.on('data', (data) ->
prefix = 'OPENVPN: '
console.log((prefix + data).trim().replace(/\n/gm, '\n#{prefix}'))
console.log((prefix + data).trim().replace(/\n/gm, "\n#{prefix}"))
)
# Prefix and log all OpenVPN output
openvpn.stderr.on('data', (data) ->
prefix = 'OPENVPN: '
console.log((prefix + data).trim().replace(/\n/gm, '\n#{prefix}'))
console.log((prefix + data).trim().replace(/\n/gm, "\n#{prefix}"))
)
console.log('Starting API server..')