Skip to content

Commit

Permalink
reset logging level (Azure#25588)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifkhan authored and swathipil committed Aug 23, 2022
1 parent 41311e8 commit 5e5c67c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _buffered_send_event(self, event, **kwargs):
def _get_partitions(self):
# type: () -> None
if not self._partition_ids:
_LOGGER.info("Populating partition IDs so producers can be started.")
_LOGGER.debug("Populating partition IDs so producers can be started.")
self._partition_ids = self.get_partition_ids() # type: ignore
for p_id in cast(List[str], self._partition_ids):
self._producers[p_id] = None
Expand Down
7 changes: 2 additions & 5 deletions sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/cbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,10 @@ def update_token(self):
self.auth_state = CbsAuthState.IN_PROGRESS
access_token = self._auth.get_token()
if not access_token:
_LOGGER.info("Update_token received an empty token object")
_LOGGER.debug("Update_token received an empty token object")
elif not access_token.token:
_LOGGER.info("Update_token received an empty token")
_LOGGER.debug("Update_token received an empty token")
self._expires_on = access_token.expires_on
_LOGGER.info('Update_token after token has been updated')
_LOGGER.info('Current time: %r', datetime.now())
_LOGGER.info('Token expiry: %r', datetime.fromtimestamp(self._expires_on))
expires_in = self._expires_on - int(utc_now().timestamp())
self._refresh_window = int(float(expires_in) * 0.1)
try:
Expand Down

0 comments on commit 5e5c67c

Please sign in to comment.