Log inside before_restart