Skip to content
Prev Previous commit
Next Next commit
fix: error messages format
  • Loading branch information
eirture committed Feb 14, 2025
commit 132c9d2893c80646405a40818ea9bc61560b6a84
4 changes: 2 additions & 2 deletions qiniu/http/regions_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def __iter__(self):
try:
self.__shrink_cache()
except Exception as err:
logging.warning('failed to shrink cache', err)
logging.warning('failed to shrink cache. error: %s', err)

get_regions_fns = [
self.__get_regions_from_memo,
Expand Down Expand Up @@ -581,7 +581,7 @@ def set_regions(self, regions):
'regions': [_persist_region(r) for r in regions]
}) + os.linesep)
except Exception as err:
logging.warning('failed to cache regions result to file', err)
logging.warning('failed to cache regions result to file. error: %s', err)

@property
def persist_path(self):
Expand Down
Loading