Changing logging function to put out actual objects, if appropriate