print info to the console