Log domain not the whole struct

This commit is contained in:
Uku Taht 2020-07-03 11:06:06 +03:00
parent 6d2a0914d1
commit 1f35fbe239

View File

@ -36,7 +36,7 @@ defmodule Plausible.Workers.ProvisionSslCertificates do
end
defp report_result({error_msg, error_code}, domain) do
Logger.error("Error obtaining SSL certificate for #{domain}: #{error_msg}")
Logger.error("Error obtaining SSL certificate for #{domain.domain}: #{error_msg}")
Sentry.capture_message("Error obtaining SSL certificate",
extra: %{error_msg: error_msg, error_code: error_code, domain: domain.domain}