Usman Arif
Home Blog › The Art of the 3AM Bug: A Field Guide

5 March 2026 · 5 min

The Art of the 3AM Bug: A Field Guide

#debugging#sre
TL;DR

In an incident, slow down. Stop the bleeding first, change one thing at a time, read the logs before touching anything, and write it all down.

The 3am bug is a rite of passage, and panic is what turns a bad night into a disaster. The senior move isn't knowing the answer instantly — it's staying methodical while everything is on fire.

Stop the bleeding first

Mitigate before you diagnose. Roll back, flip the flag, scale up, fail over — whatever makes users okay again buys you the calm to find the real cause. Recovery time beats root cause at 3am.

One variable at a time

Under pressure the temptation is to change five things and pray. Don't. Change one thing, observe, then the next. Shotgun debugging just gives you a new mystery layered on the old one.

Read, then write

The logs almost always already said what's wrong — read them before you touch anything. And keep a running note as you go; tomorrow-you writing the postmortem will thank tonight-you for the timeline.

Building something with AI, agents or RAG?

Usman Arif builds production LLM features and full-stack apps for teams worldwide. Let’s talk.

usman.professional01@gmail.com

Next: React Server Components, Explained Like I Was Confused Too