Skip to content

Commit

Permalink
Add debugging logging of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivor committed Sep 28, 2024
1 parent ad09614 commit a502249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tesla/middleware/meta_logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ if Code.ensure_loaded?(Tesla) do
metadata = MetaLogger.metadata()
max_entry_length = Keyword.get(options, :max_entry_length)

MetaLogger.log(level, "These are the metadata from callers.", metadata)

message
|> Slicer.slice(max_entry_length)
|> Enum.map(&prepend_tag(&1, options))
Expand Down

0 comments on commit a502249

Please sign in to comment.