Add variable logging while syncing based on logging level