             return nil
         }
         
-        var client = RavenClient(config: config!, extra: extra, tags: tags, logger: logger)
+        let client = RavenClient(config: config!, extra: extra, tags: tags, logger: logger)
         
         if (_RavenClientSharedInstance == nil) {
             _RavenClientSharedInstance = client

            tags[entry.0] = entry.1
        }
        
        var returnDict : [String: AnyObject] = ["event_id" : self.generateUUID(),
            "project"   : self.config.projectId!,
            "timestamp" : self.dateFormatter.stringFromDate(NSDate()),
            "level"     : level.rawValue,

        var stacktrace : [AnyObject] = []
        
        if (method != nil && file != nil && line > 0) {
            let frame = ["filename" : file!.lastPathComponent, "function" : method!, "lineno" : line]
            stacktrace = [frame]
        }
        
