Improve openvpn logging

- Show Initialization Sequence completed in green
- Show all other openvpn logs in the openvpn color
This commit is contained in:
Quentin McGaw
2020-07-16 01:20:47 +00:00
parent 51af8d1ab0
commit 76b730e2a6
2 changed files with 15 additions and 5 deletions

View File

@@ -100,6 +100,10 @@ func Test_PostProcessLine(t *testing.T) {
"openvpn: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay",
"",
""},
"openvpn success": {
"openvpn: Initialization Sequence Completed",
"openvpn: Initialization Sequence Completed",
logging.InfoLevel},
}
for name, tc := range tests {
tc := tc