1 // These build constraints are copied from webrtc's settingengine.go.
10 "github.com/pion/logging"
11 "github.com/pion/webrtc/v3"
14 var s = webrtc.SettingEngine{
15 // This could probably be done with better integration into anacrolix/log, but I'm not sure if
16 // it's worth the effort.
17 LoggerFactory: discardLoggerFactory{},
20 type discardLoggerFactory struct{}
22 func (discardLoggerFactory) NewLogger(scope string) logging.LeveledLogger {
23 return logging.NewDefaultLeveledLoggerForScope(scope, logging.LogLevelInfo, io.Discard)