Add logging to setup function of migration script