Update sync.py

Add a log param for create function.