update a deprecated assert in logging tests (GH-17079)

1 file changed