2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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