In wfDebugLog(): log the hostname if $wgShowHostnames is true. Cache the hostname.