Skip to content

Commit

Permalink
Add INFO log for each table being fingerprinted (#41365)
Browse files Browse the repository at this point in the history
  • Loading branch information
calherries authored and Metabase bot committed Apr 12, 2024
1 parent 9de59a6 commit ade5108
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/metabase/sync/analyze/fingerprint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,14 @@
"Generate and save fingerprints for all the Fields in `table` that have not been previously analyzed."
[table :- i/TableInstance]
(if-let [fields (fields-to-fingerprint table)]
(let [stats (sync-util/with-error-handling
(format "Error fingerprinting %s" (sync-util/name-for-logging table))
(fingerprint-table! table fields))]
(if (instance? Exception stats)
(empty-stats-map 0)
stats))
(do
(log/infof "Fingerprinting %s fields in table %s" (count fields) (sync-util/name-for-logging table))
(let [stats (sync-util/with-error-handling
(format "Error fingerprinting %s" (sync-util/name-for-logging table))
(fingerprint-table! table fields))]
(if (instance? Exception stats)
(empty-stats-map 0)
stats)))
(empty-stats-map 0)))

(def ^:private LogProgressFn
Expand Down

0 comments on commit ade5108

Please sign in to comment.