Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
# example: *.js @octocat @github/js

# These owners will be the default owners for everything in the repo.
* @aashishgurung @ajzkk
6 changes: 5 additions & 1 deletion omise/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def send(self, method, path, payload=None, headers=None):
request_headers = self._build_headers(headers)

logger.info('Sending HTTP request: %s %s', method.upper(), request_path)
logger.debug('Authorization: %s', self.api_key)

# Replacing characters with * other than the first 4 characters
display_key = self.api_key[:4] + (len(self.api_key) - 4)*'*'

logger.debug('Authorization: %s', display_key)
Comment on lines +88 to +92
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just remove logger.debug('Authorization: %s', self.api_key) on L88 and L111

logger.debug('Payload: %s', request_payload)
logger.debug('Headers: %s', request_headers)

Expand Down