This repository was archived by the owner on Mar 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/googlesheets_sql_sync Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- (defproject googlesheets-sql-sync " 0.2 .0"
1+ (defproject googlesheets-sql-sync " 0.3 .0"
22 :description " Keep your SQL database in sync with Google Sheets"
33 :url " https://github.com/jorinvo/googlesheets-sql-sync"
44 :license {:name " MIT"
Original file line number Diff line number Diff line change 1515 " Convert metrics to readable string"
1616 [{:keys [::sync-counter ]}]
1717 (str
18- " # HELP googlesheets_sql_sync_count The total number of syncs completed.\n "
18+ " # HELP googlesheets_sql_sync_count The total number of syncs successfully completed.\n "
1919 " # TYPE googlesheets_sql_sync_count counter\n "
2020 (format " googlesheets_sql_sync_count %d\n " @sync-counter)))
2121
Original file line number Diff line number Diff line change 3030 (->> (:sheets cfg)
3131 (map #(sheets/get-rows % token throttler))
3232 (run! #(db/update-table cfg %)))
33- (log/info " Sync done" ))
33+ (log/info " Sync done" )
34+ (metrics/count-sync ctx))
3435 (if no-server
3536 (do
3637 (log/error " Cannot authenticate when server is disabled" )
3940 (catch Exception e (log/error (.getMessage e) " \n Sync failed" )))
4041 (log/info " Next sync in" (interval/->string (:interval cfg)))
4142 (async/put! timeout> (:interval cfg)))
42- (metrics/count-sync ctx)
4343 (catch Exception e (do (log/error " Failed reading config file" (.getMessage e))
4444 :not-ok ))))
4545
You can’t perform that action at this time.
0 commit comments