Add missing logger variable in sync_resource