         if let url = request.URL, redirectedUrl = HttpsEverywhere.singleton.tryRedirectingUrl(url) {
             let newRequest = cloneRequest(request)
             newRequest.URL = redirectedUrl
+#if DEBUG
+            print(url.absoluteString + " [HTTPE to] " + redirectedUrl.absoluteString)
+#endif
             return newRequest
         }
         return request

        self.mutableData = NSMutableData()
    }

    func connection(connection: NSURLConnection!, didReceiveData data: NSData!) {
        self.client!.URLProtocol(self, didLoadData: data)
        self.mutableData.appendData(data)

    }

    override class func canonicalRequestForRequest(request: NSURLRequest) -> NSURLRequest {
        if (TrackingProtection.singleton.shouldBlock(request) || AdBlocker.singleton.shouldBlock(request)) {
            let newRequest = cloneRequest(request)
            // the minimum I can return without a crash is this url. NSURL() or NSURL("") will crash.
