Skip to content

Commit 89370d2

Browse files
authored
Fix: log_arguments of Mailer does not work properly
1 parent f3aea8c commit 89370d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_semantic_logger/action_mailer/log_subscriber.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def action
9292
end
9393

9494
def formatted_args
95-
if defined?(mailer.contantize.log_arguments?) && !mailer.contantize.log_arguments?
95+
if defined?(mailer.constantize.log_arguments?) && !mailer.constantize.log_arguments?
9696
""
9797
else
9898
JSON.pretty_generate(event.payload[:args].map { |arg| format(arg) }) if event.payload[:args].present?

0 commit comments

Comments
 (0)