Add user agent and subdomain info to the log

This will make it easier to distinguish bot traffic from real API
requests.