QueryLogObserver
Logs every failed query by who must act on it:
a rejection the caller can fix (an error-catalog violation, a missing caller scope, a state read's parameter, a computed value past a double's range, QueryOutOfRangeException) at DEBUG, by its message alone: it is the client's error, answered 4xx, and logging it louder lets callers flood the log; so is a state read answered as not found, whatever the reason, which the audit keeps;
a query its store's bulkhead refused (QueryBusyException, answered 429 with
Retry-After) at DEBUG only: the store shedding load, not a defect, and every query beyond its limit meets it while it lasts. The bulkhead logs the burst, its first refusal at WARN and its end at INFO, under this category (me.ahoo.wow.query.admission.QueryBulkhead); a refusal not logged here takes no lock and builds nothing;a storage that cannot be reached (QueryStorageUnavailableException, answered 503 with
Retry-After) at WARN, by its message and its redacted cause chain: an outage, not a defect, and every query meets it until it ends;a server fault the core states (QueryExecutionException) at ERROR, by its message and its cause chain with every message redacted: a cause can hold record values (a failing mask strategy sees the raw value, a storage driver echoes the query), so only each cause's class name and stack trace reach the log;
any other failure at ERROR with its stack trace.