Fix logging deprecation warning during sync.
Merge pull request #1402 from Meaglin/issue-logging

Fix logging deprecation warning during sync.