log query success/fail as status field