Added CLIENT_IP macro and output of client ips in debug logs.