More consistent logic in HTTP logging functions.