Fixed logging to include client IP and server URL.