Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #36 from ocadotechnology/reduced_logging
Browse files Browse the repository at this point in the history
Reduced logging
  • Loading branch information
jarekdrabek authored Jun 29, 2018
2 parents bed34f6 + 0bfa760 commit 6ce7c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions appengine_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from google.appengine.ext import vendor

vendor.add('lib')

from googleapiclient import discovery
from oauth2client import client

discovery.logger.setLevel('WARNING')
client.logger.setLevel('WARNING')
3 changes: 0 additions & 3 deletions gcp_census/bigquery/bigquery_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ def stream_stats(self, row):
logging.debug("Sent json: \n%s", json.dumps(insert_all_data))
logging.error("Error during streaming metadata to BigQuery: \n%s",
json.dumps(insert_all_response['insertErrors']))
else:
logging.debug("Stats have been sent successfully to %s.%s table",
row.dataset_id, row.table_id)

@retry(Error, tries=2, delay=2, backoff=2)
def _stream_metadata(self, insert_all_data, dataset_id, table_id):
Expand Down

0 comments on commit 6ce7c55

Please sign in to comment.