DEV: adds log warning if assign is not enabled (#202)

DEV: adds log warning if assign is not enabled (#202)

diff --git a/plugin.rb b/plugin.rb
index 4cae308..ebc3a51 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -671,8 +671,11 @@ after_initialize do
 
       triggerables %i[point_in_time recurring]
 
-      script do |context, fields|
-        next unless SiteSetting.assign_enabled?
+      script do |context, fields, automation|
+        unless SiteSetting.assign_enabled?
+          Rails.logger.warn("[discourse-automation id=#{automation.id}] discourse-assign is not enabled.")
+          next
+        end
 
         next unless topic_id = fields.dig('assigned_topic', 'value')
         next unless topic = Topic.find_by(id: topic_id)

GitHub sha: da0a6ce219b9697edae0a039abe1c60a13fcf648

This commit appears in #202 which was approved by eviltrout. It was merged by jjaffeux.