 
 private func errorWrap<T>(deferred: Deferred<Result<T>>, handler: ResponseHandler) -> ResponseHandler {
     return { (request, response, data, error) in
-        println("Response is \(response), data is \(data)")
+        log.debug("Response is \(response), data is \(data)")
 
         if let error = error {
-            println("Got error.")
+            log.error("Got error \(error). Response: \(response?.statusCode)")
             deferred.fill(Result<T>(failure: RequestError(error)))
             return
         }
 
         if response == nil {
             // TODO: better error.
-            println("No response")
+            log.error("No response")
             let result = Result<T>(failure: RecordParseError())
             deferred.fill(result)
             return

        self.authorizer = {
            (r: NSMutableURLRequest) -> NSMutableURLRequest in
            let helper = HawkHelper(id: token.id, key: token.key.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!)
            r.addValue(helper.getAuthorizationValueFor(r), forHTTPHeaderField: "Authorization")
            return r
        }
    }

    func requestGET(url: NSURL) -> Request {
        let req = NSMutableURLRequest(URL: url)
        req.HTTPMethod = Method.GET.rawValue
        req.setValue("application/json", forHTTPHeaderField: "Accept")
        let authorized: NSMutableURLRequest = self.authorizer(req)
        return Alamofire.request(authorized)
                        .validate(contentType: ["application/json"])
