Quick fix for logging in query engine