add validation logs for configured Logger/Audit HTTP targets (#10274)

extra logs in-case of misconfiguration of audit/logger targets
This commit is contained in:
Harshavardhana
2020-08-16 10:25:00 -07:00
committed by GitHub
parent 01a2ccc52f
commit f7c1a59de1
7 changed files with 105 additions and 16 deletions

View File

@@ -42,6 +42,10 @@ type testingLogger struct {
t testLoggerI
}
func (t *testingLogger) Validate() error {
return nil
}
func (t *testingLogger) Send(entry interface{}, errKind string) error {
t.mu.Lock()
defer t.mu.Unlock()