Skip to content

Commit 564f3f4

Browse files
committed
fix: remove debug log flagged by CodeQL as sensitive-data exposure
Drop debug log in demo dispatch generator that logged picking.name and beneficiary_count — CodeQL taint analysis flags these as sensitive data due to the "beneficiary" variable name.
1 parent 952025c commit 564f3f4

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

spp_drims_sl_demo/wizard/drims_demo_generator.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,12 +1636,6 @@ def _generate_completed_dispatches(self, incidents):
16361636
picking.date_arrived = fields.Datetime.now() - timedelta(hours=random.randint(0, 1))
16371637

16381638
dispatches |= picking
1639-
_logger.debug(
1640-
"Created completed dispatch %s for request ID=%s (beneficiaries: %d)",
1641-
picking.name,
1642-
request.id,
1643-
beneficiary_count,
1644-
)
16451639
except Exception as e:
16461640
_logger.warning("Failed to complete dispatch for request ID=%s: %s", request.id, e)
16471641
# Delete failed picking

0 commit comments

Comments
 (0)