XF 2.2 Logging Max Connections and IP Address

Now and then we get a flurry of error logs because a user, almost always a guest user, has exceeded the forum's "max connections" limit. At first I thought this was a MySQL error, but over time I realised that it often occurred during light usage periods (not an issue with SQL) and was typically caused by malicious bot spammers. The reason it took me so long to realise this is because the logs you get don't appear to display an IP address for the error report, thus I found it difficult to track down the culprit in our server logs and to identify a pattern.

So my question is, does XenForo record an IP address for those who experience an error and if so, where can I see it in the error report? If not, then is there any way to add this ability?
Top Bottom