QA-169
fixed a bug that caused unnecessary logs to be queried.