Update sync.py

Add a log param for create function.
Merge pull request #1 from butterhuang/patch-3

merge