added try catch on querylog temporarily