Skip to content
Snippets Groups Projects

Explicitely log a warning when the helper doesn't support cache

Merged Manon Blanco requested to merge cache-explicit-warning-when-unsupported into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -380,7 +380,7 @@ def unsupported_cache(func):
def wrapper(self, *args, **kwargs):
results = func(self, *args, **kwargs)
if not self.is_read_only and not self.use_cache:
if not (self.is_read_only or self.use_cache):
logger.warning(
f"This API helper `{func.__name__}` did not update the cache database"
)
Loading