added printing since loging fails