Skip to content
Snippets Groups Projects
Unverified Commit 979897eb authored by Chris Truter's avatar Chris Truter Committed by GitHub
Browse files

Fix log formatting for query analyzer (#46410)

parent 49e6dbdf
No related branches found
No related tags found
No related merge requests found
......@@ -44,13 +44,13 @@
timer (u/start-timer)
card (query-analysis/->analyzable card-id)]
(if (failure-map/non-retryable? card)
(log/warnf "Skipping analysis of Card % as its query has caused failures in the past." card-id)
(log/warnf "Skipping analysis of Card %s as its query has caused failures in the past." card-id)
(try
(query-analysis/analyze-card! card)
(failure-map/track-success! card)
(Thread/sleep (wait-proportional (u/since-ms timer)))
(catch Exception e
(log/errorf e "Error analysing and updating query for Card %" card-id)
(log/errorf e "Error analysing and updating query for Card %s" card-id)
(failure-map/track-failure! card)
(Thread/sleep (wait-fail (u/since-ms timer))))))
(cond
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment