Improved api logging to include ips