Disabling operation logging with a global scope variable