FEATURE: Filter settings by plugin (#9692)

This commit is contained in:
Bianca Nenciu
2020-05-10 14:07:45 +03:00
committed by GitHub
parent 3b2b635e9b
commit 8149bfbaf1
10 changed files with 85 additions and 66 deletions

View File

@ -801,7 +801,7 @@ module Discourse
redis_key = "deprecate-notice-#{digest}"
if !Discourse.redis.without_namespace.get(redis_key)
Rails.logger.warn(warning)
Rails.logger.warn(warning) if Rails.logger
begin
Discourse.redis.without_namespace.setex(redis_key, 3600, "x")
rescue Redis::CommandError => e