When compression is enabled, the ContextHandler is wrapped by a GzipHandler. When determining the context path to log, this wrapper prevents the ContextHandler from being found. As a result, an empty string is logged rather than the actual context path.