From 70701a27d32285f3a6cf65c40ab04bd48ff06a9b Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 16 Jun 2024 11:26:49 -0400 Subject: [PATCH] fix issue with oban exception logger --- CHANGELOG.md | 1 + lib/cannery/logger.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f609594..81255063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # v0.9.10 +- Fix issue with logger failing on oban exceptions - Update deps # v0.9.9 diff --git a/lib/cannery/logger.ex b/lib/cannery/logger.ex index b10e6144..e7541a5a 100644 --- a/lib/cannery/logger.ex +++ b/lib/cannery/logger.ex @@ -14,7 +14,7 @@ defmodule Cannery.Logger do |> Map.put(:stacktrace, Exception.format_stacktrace(stacktrace)) |> pretty_encode() - Logger.error("#{meta.reason}: #{data}") + Logger.error("Oban exception: #{data}") end def handle_event([:oban, :job, :start], measure, meta, _config) do