Files
gluetun/internal/firewall/logger.go

18 lines
303 B
Go
Raw Normal View History

package firewall
2024-03-21 09:48:02 +00:00
import (
"fmt"
"net/netip"
)
type Logger interface {
Debug(s string)
Info(s string)
Error(s string)
}
2024-03-21 09:48:02 +00:00
func (c *Config) logIgnoredSubnetFamily(subnet netip.Prefix) {
c.logger.Info(fmt.Sprintf("ignoring subnet %s which has "+
"no default route matching its family", subnet))
}