Making print statement a debuglog