Skip to content

Commit 85a343f

Browse files
Potential fix for code scanning alert no. 9: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent bfef089 commit 85a343f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

simple_org_chart/app_main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,12 @@ def update_new_status(node):
597597
update_new_status(data)
598598

599599
# Debug logging for root user
600-
if data and data.get('name'):
601-
logger.info(f"Returning org chart data with root user: {data['name']} ({data.get('email', 'no email')})")
600+
if data:
601+
logger.info(
602+
"Returning org chart data with root user present (id=%s, has_email=%s)",
603+
data.get('id'),
604+
bool(data.get('email')),
605+
)
602606

603607
if not data:
604608
logger.warning("No hierarchical data available")

0 commit comments

Comments
 (0)