Fix logging deprecation warning during sync.

Don't cast it to boolean, this is deprecated.