DEV: Fix build

DEV: Fix build

Rails.logger is not available when Discourse.deprecate is called from enabled_site_setting_filter.

Follow up to db4601823546b7a1451b82a6f556a30a55166a21.

diff --git a/lib/discourse.rb b/lib/discourse.rb
index 649fb00..9bdbc2b 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -801,7 +801,7 @@ module Discourse
     redis_key = "deprecate-notice-#{digest}"
 
     if !Discourse.redis.without_namespace.get(redis_key)
-      Rails.logger.warn(warning) if Rails.logger
+      Rails.logger.warn(warning)
       begin
         Discourse.redis.without_namespace.setex(redis_key, 3600, "x")
       rescue Redis::CommandError => e
diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
index 006aa31..5f218ab 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -626,7 +626,7 @@ class Plugin::Instance
   end
 
   def enabled_site_setting_filter(filter = nil)
-    Discourse.deprecate("`enabled_site_setting_filter` is deprecated", output_in_test: true)
+    STDERR.puts("`enabled_site_setting_filter` is deprecated")
   end
 
   def enabled_site_setting(setting = nil)

GitHub sha: 09caf614