Made the exception print to the log as print instead of println