Skip to content
Snippets Groups Projects
Unverified Commit 100973aa authored by Walter Leibbrandt's avatar Walter Leibbrandt Committed by GitHub
Browse files

Log complete token validation error only to debug log (#14674)

* Log complete token validation error only to debug log

Logging e's stack trace causes _thousands_ of extra noisy log lines,
even for relatively benign causes, like tokens expiring. The noise makes
it difficult to see what actually wrong.

* Add colon before exception message
parent 8cc75c5e
Branches
Tags
No related merge requests found
......@@ -144,7 +144,8 @@
(or (some-> (premium-embedding-token) valid-token->features)
#{})
(catch Throwable e
(log/error e (trs "Error validating token"))
(log/error (trs "Error validating token") ":" (ex-message e))
(log/debug e (trs "Error validating token"))
#{})))
(defsetting hide-embed-branding?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment