Add IP to API logging