Adding better logging for IPv4