Matching DEBUG settings for query log output in inline error reporting