@@ -240,12 +240,12 @@ def run_query(self, query, **kwargs):
240
240
self ._start_timer ()
241
241
242
242
try :
243
- logger .info ('Requesting query... ' )
243
+ logger .debug ('Requesting query... ' )
244
244
query_reply = self .client .query (
245
245
query ,
246
246
job_config = bigquery .QueryJobConfig .from_api_repr (job_config ),
247
247
location = self .location )
248
- logger .info ('ok. \n Query running...' )
248
+ logger .info ('Query running...' )
249
249
except (RefreshError , ValueError ):
250
250
if self .private_key :
251
251
raise AccessDenied (
@@ -258,7 +258,7 @@ def run_query(self, query, **kwargs):
258
258
self .process_http_error (ex )
259
259
260
260
job_id = query_reply .job_id
261
- logger .info ('Job ID: %s\n Query running... ' % job_id )
261
+ logger .debug ('Job ID: %s' % job_id )
262
262
263
263
while query_reply .state != 'DONE' :
264
264
self .log_elapsed_seconds (' Elapsed' , 's. Waiting...' )
@@ -303,8 +303,7 @@ def run_query(self, query, **kwargs):
303
303
for field in rows_iter .schema ],
304
304
}
305
305
306
- # log basic query stats
307
- logger .info ('Got {} rows.\n ' .format (total_rows ))
306
+ logger .debug ('Got {} rows.\n ' .format (total_rows ))
308
307
309
308
return schema , result_rows
310
309
@@ -314,7 +313,6 @@ def load_data(
314
313
from pandas_gbq import load
315
314
316
315
total_rows = len (dataframe )
317
- logger .info ("\n \n " )
318
316
319
317
try :
320
318
chunks = load .load_chunks (self .client , dataframe , dataset_id ,
@@ -328,8 +326,6 @@ def load_data(
328
326
except self .http_error as ex :
329
327
self .process_http_error (ex )
330
328
331
- logger .info ("\n " )
332
-
333
329
def schema (self , dataset_id , table_id ):
334
330
"""Retrieve the schema of the table
335
331
@@ -611,7 +607,6 @@ def read_gbq(query, project_id=None, index_col=None, col_order=None,
611
607
connector .log_elapsed_seconds (
612
608
'Total time taken' ,
613
609
datetime .now ().strftime ('s.\n Finished at %Y-%m-%d %H:%M:%S.' ),
614
- 0
615
610
)
616
611
617
612
return final_df
0 commit comments