      * in the history table.
      */
     public func addFavicon(icon: Favicon, forSite site: Site) -> Deferred<Maybe<Int>> {
-        if Logger.logPII {
-            log.verbose("Adding favicon \(icon.url) for site \(site.url).")
-        }
+        #if DEBUG
+        print("Adding favicon \(icon.url) for site \(site.url).")
+        #endif
         func doChange(query: String, args: Args?) -> Deferred<Maybe<Int>> {
             var err: NSError?
             let res = db.withWritableConnection(&err) { (conn, inout err: NSError?) -> Int in

        // Note that we will never match against a deleted item, because deleted items have no URL,
        // so we don't need to unset is_deleted here.
        if let host = site.url.asURL?.normalizedHost() {
            let update = "UPDATE \(TableHistory) SET title = ?, local_modified = ?, should_upload = 1, domain_id = (SELECT id FROM \(TableDomains) where domain = ?) WHERE url = ?"
            let updateArgs: Args? = [site.title, time, host, site.url]
            if Logger.logPII {
                log.debug("Setting title to \(site.title) for URL \(site.url)")
            }
            let error = conn.executeChange(update, withArgs: updateArgs)
            if error != nil {
                log.warning("Update failed with \(error?.localizedDescription)")

    }

    public func getSitesByLastVisit(limit: Int) -> Deferred<Maybe<Cursor<Site>>> {
        return self.getFilteredSitesByVisitDateWithLimit(limit, whereURLContains: nil, includeIcon: false)
    }

    private class func basicHistoryColumnFactory(row: SDRow) -> Site {
