Fixes #3685 - Zammad UI should silently discard Cache / apply2file errors.
This commit is contained in:
parent
a1af43d3e7
commit
8989916f21
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ module ActiveSupport
|
||||||
# in certain cases, caches are deleted by other thread at same
|
# in certain cases, caches are deleted by other thread at same
|
||||||
# time, just log it
|
# time, just log it
|
||||||
super
|
super
|
||||||
|
rescue Errno::ENOENT => e
|
||||||
|
Rails.logger.debug { "Can't write cache (probably related to high load / https://github.com/zammad/zammad/issues/3685) #{name}: #{e.inspect}" }
|
||||||
|
Rails.logger.debug e
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.error "Can't write cache #{name}: #{e.inspect}"
|
Rails.logger.error "Can't write cache #{name}: #{e.inspect}"
|
||||||
Rails.logger.error e
|
Rails.logger.error e
|
||||||
|
|
Loading…
Reference in a new issue