Changed a method call to a string cast in the logger