mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 02:40:03 +00:00
Fix output format of VPN logs
This commit is contained in:
parent
12b3e194b5
commit
614b24c796
@ -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..')
|
||||
|
Loading…
Reference in New Issue
Block a user