add debug

This commit is contained in:
Antonio J. Delgado 2025-03-27 10:48:44 +02:00
parent 84fe501886
commit 6c1130c848

View file

@ -303,9 +303,11 @@ class BackupImap:
cached_data['last_update'] + self.config['max_cache_age'] > time.time() cached_data['last_update'] + self.config['max_cache_age'] > time.time()
): ):
self._log.debug( self._log.debug(
"Data in cache file '%s' is too old (%s), initializing cache data.", "Data in cache file '%s' is too old (%s + %s > %s), initializing cache data.",
self.config['cache_file'], self.config['cache_file'],
cached_data['last_update'] cached_data['last_update'],
self.config['max_cache_age'],
time.time()
) )
cached_data = self._default_data cached_data = self._default_data
except json.decoder.JSONDecodeError: except json.decoder.JSONDecodeError: