File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 122122_DEFAULT_CHUNKSIZE  =  104857600  # 1024 * 1024 B * 100 = 100 MB 
123123_MAX_MULTIPART_SIZE  =  8388608  # 8 MB 
124124
125+ _logger  =  logging .getLogger (__name__ )
126+ 
125127
126128class  Blob (_PropertyMixin ):
127129 """A wrapper around Cloud Storage's concept of an ``Object``. 
@@ -923,7 +925,7 @@ def _do_download(
923925
924926 if  checksum :
925927 msg  =  _CHUNKED_DOWNLOAD_CHECKSUM_MESSAGE .format (checksum )
926-  logging .info (msg )
928+  _logger .info (msg )
927929
928930 if  raw_download :
929931 klass  =  RawChunkedDownload 
Original file line number Diff line number Diff line change @@ -1115,7 +1115,7 @@ def test__do_download_w_chunks_w_custom_timeout(self):
11151115 def  test__do_download_w_chunks_w_checksum (self ):
11161116 from  google .cloud .storage  import  blob  as  blob_module 
11171117
1118-  with  mock .patch ( "logging. info" ) as  patch :
1118+  with  mock .patch . object ( blob_module . _logger ,  " info" ) as  patch :
11191119 self ._do_download_helper_w_chunks (
11201120 w_range = False , raw_download = False , checksum = "md5" 
11211121 )
@@ -1124,7 +1124,9 @@ def test__do_download_w_chunks_w_checksum(self):
11241124 )
11251125
11261126 def  test__do_download_w_chunks_wo_checksum (self ):
1127-  with  mock .patch ("logging.info" ) as  patch :
1127+  from  google .cloud .storage  import  blob  as  blob_module 
1128+ 
1129+  with  mock .patch .object (blob_module ._logger , "info" ) as  patch :
11281130 self ._do_download_helper_w_chunks (
11291131 w_range = False , raw_download = False , checksum = None 
11301132 )
                                 You can’t perform that action at this time. 
               
                  
0 commit comments