fleet/server/test/testingt.go
Zach Wasserman de0b3324b1
Add AWS Lambda as logging plugin (#347)
This plugin invokes the provided function with each log line as the
payload.

Closes #342
2021-02-24 10:02:26 -08:00

18 lines
275 B
Go

package test
import "testing"
type quiet struct {
*testing.T
}
// Quiet returns a wrapper around testing.T that silences Logf calls
func Quiet(t *testing.T) *quiet {
return &quiet{t}
}
func (q *quiet) Logf(format string, args ...interface{}) {
// No logging
return
}