Skip to content

Commit 132c9d2

Browse files
committed
fix: error messages format
1 parent dcc0da4 commit 132c9d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiniu/http/regions_provider.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def __iter__(self):
543543
try:
544544
self.__shrink_cache()
545545
except Exception as err:
546-
logging.warning('failed to shrink cache', err)
546+
logging.warning('failed to shrink cache. error: %s', err)
547547

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

586586
@property
587587
def persist_path(self):

0 commit comments

Comments
 (0)