mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Fix build
Rails.logger is not available when Discourse.deprecate is called from enabled_site_setting_filter. Follow up to db4601823546b7a1451b82a6f556a30a55166a21.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user