Skip to content

Commit

Permalink
log part of the token
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Mar 4, 2022
1 parent 876d9e5 commit cd53956
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uw_myplan/dao.py
Expand Up @@ -66,5 +66,7 @@ def _custom_headers(self, method, url, headers, body):
headers = {}
secret = self.get_service_setting("AUTH_SECRET", "")
if secret:
logger.info("AUTH_SECRET: {}...{}".format(
secret[:10], secret[-10:],))
headers["Authorization"] = self.auth_dao.get_auth_token(secret)
return headers

0 comments on commit cd53956

Please sign in to comment.