add log for content length