logging exceptions during query execution
testing