Removes logging that fails when pass an iterable object.