Skip to content

Replace print() calls with logging across SDK, examples, tests, and docs - #227

Merged
cx-happy-yang merged 1 commit into
masterfrom
fix/use-log-instead-of-print
Sep 9, 2026
Merged

cx-happy-yang merged 1 commit into
masterfrom
fix/use-log-instead-of-print

Conversation

@cx-happy-yang

Copy link
Copy Markdown
Contributor

All print() calls converted to logger.info/logger.error/logger.warning using logging.getLogger(name) per module, following the SDK's existing logging conventions. stderr prints become logger.error; skip/warning messages become logger.warning.

All print() calls converted to logger.info/logger.error/logger.warning using
logging.getLogger(__name__) per module, following the SDK's existing logging
conventions. stderr prints become logger.error; skip/warning messages become
logger.warning.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@cx-happy-yang cx-happy-yang added the workflows-approved A PR needs the label workflows-approved to run any workflows. label Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Details – 018d6e7f-f803-4d20-862b-4727ea6c6a44


New Issues (3) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 LOW Filtering_Sensitive_Logs CheckmarxPythonSDK/api_client.py: 267
detailsThe application logs various user events, and in method get_report writes sensitive user details to info, in /CheckmarxPythonSDK/CxReporting/api....
Attack Vector
2 LOW Filtering_Sensitive_Logs CheckmarxPythonSDK/CxOne/repoManagerAPI.py: 230
detailsThe application logs various user events, and in method get_all_repo_orgs_for_a_scm_type writes sensitive user details to info, in /Checkmar...
Attack Vector
3 LOW Filtering_Sensitive_Logs CheckmarxPythonSDK/CxOne/KeycloakAPI/dto/ClientRepresentation.py: 91
detailsThe application logs various user events, and in method post_clients writes sensitive user details to info, in /CheckmarxPythonSDK/CxOne/KeycloakA...
Attack Vector

@cx-james-bostock cx-james-bostock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @cx-happy-yang,
Looks good to me.

@cx-happy-yang
cx-happy-yang merged commit 3d03abd into master Sep 9, 2026
9 checks passed
@cx-happy-yang
cx-happy-yang deleted the fix/use-log-instead-of-print branch September 9, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflows-approved A PR needs the label workflows-approved to run any workflows.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants