Fix logging constructor call in spec.