Skip to content

Commit

Permalink
del not
Browse files Browse the repository at this point in the history
  • Loading branch information
amshamah419 committed Dec 21, 2020
1 parent c62bfae commit 9e36fc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demisto_client/demisto_api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def __str__(self):
"""Custom error messages for exception"""
sensitive_env = os.getenv("DEMISTO_EXCEPTION_HEADER_LOGGING")
if sensitive_env:
sensitive_logging = sensitive_env.lower() not in ["true", "1", "yes"]
sensitive_logging = sensitive_env.lower() in ["true", "1", "yes"]
else:
sensitive_logging = False
error_message = "({0})\n"\
Expand Down
2 changes: 1 addition & 1 deletion gen-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sed -i "${INPLACE[@]}" -e 's#if six\.PY3:#if six.PY3 and r.getheader("Content-Ty
sed -i "${INPLACE[@]}" -e 's/"""Custom error messages for exception"""/"""Custom error messages for exception"""\
sensitive_env = os.getenv("DEMISTO_EXCEPTION_HEADER_LOGGING")\
if sensitive_env:\
sensitive_logging = sensitive_env.lower() not in ["true", "1", "yes"]\
sensitive_logging = sensitive_env.lower() in ["true", "1", "yes"]\
else:\
sensitive_logging = False/' demisto_client/demisto_api/rest.py
sed -i "${INPLACE[@]}" -e 's# if self.headers:# if self.headers and sensitive_logging:#' demisto_client/demisto_api/rest.py
Expand Down

0 comments on commit 9e36fc2

Please sign in to comment.