File size: 477 Bytes
32e0071 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | diff --git a/notes-app/audit.py b/notes-app/audit.py
--- a/notes-app/audit.py
+++ b/notes-app/audit.py
@@ -1,8 +1,11 @@
"""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()
|