correct logging for reverse proxy mode