• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Log Hostname Within Server Error Log

digitalpoint

Well-known member
#1
For environments with multiple web servers, it's a pain trying to figure out *what* web server is triggering server errors from the XenForo Server Error Log.

For example it would be super handy to know *which* web server was having a corrupted opcache going on, because you know, PHP trying to allocate 8.7GB for a function is totally normal (lol). :)

upload_2015-8-6_11-44-40.png
 

Xon

Well-known member
#2
I do a tiny code edit to insert the hostname into the logging details in XenForo_Error, but it would be good for that to be part of the core.

The Server Error log already contains privileged information, gated by an administrator permission, so a hostname isn't much extra.