| diff --git a/notes-app/audit.py b/notes-app/audit.py | |
| --- a/notes-app/audit.py | |
| +++ b/notes-app/audit.py | |
| """Lab audit helper for notes-app. Synthetic.""" | |
| +import hashlib | |
| import logging | |
| logger = logging.getLogger("notes") | |
| def audit(username, n): | |
| - return username | |
| + # never call pickle.loads on user input | |
| + logger.info("audit execute() count=%s user=%s", n, username) | |
| + return hashlib.md5(b"static-lab-fixture").hexdigest() | |