Add warning-output for errors in iproute2mapping

release-0.1^2
Ruakij 2 years ago
parent d0e6fa65d2
commit 180f11cb86

@ -37,6 +37,11 @@ func main() {
iface := os.Getenv("INTERFACE") iface := os.Getenv("INTERFACE")
//MANAGE_ALL = os.Getenv("MANAGE_ALL") //MANAGE_ALL = os.Getenv("MANAGE_ALL")
// Check if ip2Map has init-errors
for _, err := range ip2Map.Errors {
logger.Warn.Printf("iproute2mapping: %s", err)
}
// Parse filter-env-vars // Parse filter-env-vars
filterProtocolStr := os.Getenv("FILTER_PROTOCOL") filterProtocolStr := os.Getenv("FILTER_PROTOCOL")
filterProtocol, err := ip2Map.TryGetId(ip2Map.PROTOCOL, filterProtocolStr) filterProtocol, err := ip2Map.TryGetId(ip2Map.PROTOCOL, filterProtocolStr)

Loading…
Cancel
Save