add debug
This commit is contained in:
parent
84fe501886
commit
6c1130c848
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue