modified log to write out query file being executed