Log the $ip correctly here.

Have fixed this locally at least twice, time to upstream.