Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from transferwise/AP-473
Browse files Browse the repository at this point in the history
[AP-473] Refactor logging
  • Loading branch information
Samira-El authored Feb 10, 2020
2 parents 3a95f72 + 7feb507 commit de96f2f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
py_modules=['tap_salesforce'],
install_requires=[
'requests==2.20.0',
'singer-python==5.3.1',
'pipelinewise-singer-python==1.*',
'xmltodict==0.11.0'
],
entry_points='''
Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tap_salesforce.salesforce.exceptions import (
TapSalesforceException, TapSalesforceQuotaExceededException)

LOGGER = singer.get_logger()
LOGGER = singer.get_logger('tap_salesforce')

REQUIRED_CONFIG_KEYS = ['refresh_token',
'client_id',
Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
TapSalesforceException,
TapSalesforceQuotaExceededException)

LOGGER = singer.get_logger()
LOGGER = singer.get_logger('tap_salesforce')

# The minimum expiration setting for SF Refresh Tokens is 15 minutes
REFRESH_TOKEN_EXPIRATION_PERIOD = 900
Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/salesforce/bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ITER_CHUNK_SIZE = 1024
DEFAULT_CHUNK_SIZE = 50000

LOGGER = singer.get_logger()
LOGGER = singer.get_logger('tap_salesforce')

# pylint: disable=inconsistent-return-statements
def find_parent(stream):
Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/salesforce/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from requests.exceptions import HTTPError
from tap_salesforce.salesforce.exceptions import TapSalesforceException

LOGGER = singer.get_logger()
LOGGER = singer.get_logger('tap_salesforce')

MAX_RETRIES = 4

Expand Down
2 changes: 1 addition & 1 deletion tap_salesforce/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from requests.exceptions import RequestException
from tap_salesforce.salesforce.bulk import Bulk

LOGGER = singer.get_logger()
LOGGER = singer.get_logger('tap_salesforce')

BLACKLISTED_FIELDS = set(['attributes'])

Expand Down

0 comments on commit de96f2f

Please sign in to comment.