 import Foundation
 import Shared
 import Storage
+import XCGLogger
+
+private let log = Logger.browserLogger
 
 public class TabsPayload: CleartextPayloadJSON {
     public class Tab {


    var remoteTabs: [RemoteTab] {
        if let clientGUID = self["id"].asString {
            return optFilter(self["tabs"].asArray!.map({ Tab.remoteTabFromJSON($0, clientGUID: clientGUID) }))
        }
        return []
    }


        func toRemoteTabForClient(guid: GUID) -> RemoteTab? {
            let urls = optFilter(urlHistory.map({ $0.asURL }))
            if urls.isEmpty {
                log.debug("Bug 1201875 - discarding tab for \(title), \(urlHistory) as history has no conforming URLs")
                return nil
            }

