Fix log.sql for ipv6 logging