fix small logging bug in a migrate script