--- id: 561c1545-05ad-4403-909a-e0fd01ec38d9 type: code_pattern title: "Debug missing data by checking log timestamps for gaps" tags: [paper-dynasty, python, debugging, logs, pattern] importance: 0.6 confidence: 0.8 created: "2025-12-07T23:07:25.114839+00:00" updated: "2025-12-07T23:07:25.114839+00:00" --- When data is unexpectedly missing, grep the logs for timestamp gaps to identify script interruptions. Pattern: grep the log file for sequential minutes around the suspected time. A gap (no entries for a minute) indicates the script crashed/was interrupted. Example: 'grep 2025-12-07 13:08 logs/card_creation.log' returned empty, revealing the script died between 13:07:37 and 13:09:23.