Let's patch the log function as well