DEV: update error logging with `.inspect` for better debugging

This commit is contained in:
Gabriel Grubba 2024-09-12 10:40:08 -03:00
parent 8e21384602
commit 41c93edd51
No known key found for this signature in database
GPG Key ID: 5FE41764F62D556C
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ after_initialize do
provider.trigger_notification(post, channel, nil)
rescue StandardError => e
Rails.logger.warn "[discourse-automation] Error while sending chat integration message. Automation ID: #{automation.id}"
Rails.logger.warn "[discourse-chat-integration] Error: #{e}"
Rails.logger.warn "[discourse-chat-integration] Error: #{e.inspect}"
Rails.logger.warn "[discourse-chat-integration] Channel: #{channel_name}"
Rails.logger.warn "[discourse-chat-integration] Reference post: #{post.inspect}"
end