Optional query end explain logging. Still requires debug_msg().