modify limit and logger only when need sync

modify limit and logger only when need sync
Merge branch 'dev'