   (sort-by :timestamp builds))
 
 (defn- sync-jobs [jenkins-url buildviz-url sync-start-time]
+  (println "Jenkins" jenkins-url "-> buildviz" buildviz-url)
+  (println (format "Finding all builds for syncing (starting from %s)..."
+                 (tf/unparse (:date-time tf/formatters) sync-start-time)))
   (->> (api/get-jobs jenkins-url)
        (mapcat #(all-builds-for-job jenkins-url sync-start-time %))
        (progress/init "Syncing")


    (let [jenkins-url (first (:arguments args))
          buildviz-url (:buildviz-url (:options args))
          sync-start-time (get-start-date buildviz-url)]

      (sync-jobs jenkins-url buildviz-url sync-start-time))))

    (when-let [latest-build-start (:latestBuildStart buildviz-status)]
      (tc/from-long latest-build-start))))

(defn- get-start-date [buildviz-url date-from-config]
  (if (some? date-from-config)
    date-from-config
    (if-let [latest-sync-build-start (get-latest-synced-build-start buildviz-url)]
      latest-sync-build-start
      last-week)))


(defn -main [& c-args]
