WordPress logs a LONG QUERY error when a database statement runs longer than the allowed threshold. The platform records the duration, the SQL text, and the request URL.
Long queries increase CPU usage and memory pressure. They also delay page rendering and will trigger timeout messages.