Permalink
Browse files

replace access_token if its in the error message

  • Loading branch information...
KAllan357 committed Sep 11, 2018
1 parent 6203891 commit 39f14d643d9ac46d33d30c2d5840b19e1f6d1260
Showing with 2 additions and 1 deletion.
  1. +2 −1 tap_hubspot/__init__.py
View
@@ -785,7 +785,8 @@ def do_sync(STATE, catalogs):
try:
STATE = stream.sync(STATE, ctx) # pylint: disable=not-callable
except SourceUnavailableException as ex:
LOGGER.error(ex)
error_message = str(ex).replace(CONFIG['access_token'], 10 * '*')
LOGGER.error(error_message)
pass
STATE = singer.set_currently_syncing(STATE, None)

0 comments on commit 39f14d6

Please sign in to comment.