Logging filtering for openvpn process

This commit is contained in:
Quentin McGaw
2020-07-15 12:07:09 +00:00
parent 1281026850
commit ad5de13c25
2 changed files with 42 additions and 0 deletions

View File

@@ -80,6 +80,26 @@ func Test_PostProcessLine(t *testing.T) {
"tinyproxy: BLABLA Jul 12 23:07:25 [32]: Reloading config file",
"tinyproxy: Reloading config file",
logging.ErrorLevel},
"openvpn unknown": {
"openvpn: message",
"openvpn: message",
logging.InfoLevel},
"openvpn note": {
"openvpn: NOTE: message",
"openvpn: message",
logging.InfoLevel},
"openvpn warning": {
"openvpn: WARNING: message",
"openvpn: message",
logging.WarnLevel},
"openvpn options error": {
"openvpn: Options error: message",
"openvpn: message",
logging.ErrorLevel},
"openvpn ignored message": {
"openvpn: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay",
"",
""},
}
for name, tc := range tests {
tc := tc