diff --git a/rhodecode/lib/dbmigrate/versions/031_version_2_2_3.py b/rhodecode/lib/dbmigrate/versions/031_version_2_2_3.py --- a/rhodecode/lib/dbmigrate/versions/031_version_2_2_3.py +++ b/rhodecode/lib/dbmigrate/versions/031_version_2_2_3.py @@ -39,7 +39,7 @@ def fixups(models, _SESSION): notify('Creating repository states') _state = models.Repository.STATE_CREATED for repo in models.Repository.get_all(): - print 'setting repo %s state to "%s"' % (repo, _state) + log.info('setting repo %s state to "%s"', repo, _state) repo.repo_state = _state _SESSION().add(repo) _SESSION().commit() diff --git a/rhodecode/lib/dbmigrate/versions/033_version_2_3_0.py b/rhodecode/lib/dbmigrate/versions/033_version_2_3_0.py --- a/rhodecode/lib/dbmigrate/versions/033_version_2_3_0.py +++ b/rhodecode/lib/dbmigrate/versions/033_version_2_3_0.py @@ -39,7 +39,7 @@ def fixups(models, _SESSION): notify('Fixing auth tokens roles') _role = models.UserApiKeys.ROLE_ALL for token in models.UserApiKeys.get_all(): - print 'setting key %s role to "%s"' % (token, _role) + log.info('setting key %s role to "%s"', token, _role) token.role = _role _SESSION().add(token) _SESSION().commit() diff --git a/rhodecode/lib/dbmigrate/versions/040_version_3_0_0.py b/rhodecode/lib/dbmigrate/versions/040_version_3_0_0.py --- a/rhodecode/lib/dbmigrate/versions/040_version_3_0_0.py +++ b/rhodecode/lib/dbmigrate/versions/040_version_3_0_0.py @@ -43,5 +43,5 @@ def fixups(models, _SESSION): res = PermissionModel(_SESSION()).create_default_user_permissions( models.User.DEFAULT_USER) - print res + log.info('created default permission %s', res) _SESSION().commit() diff --git a/rhodecode/lib/dbmigrate/versions/050_version_4_0_0.py b/rhodecode/lib/dbmigrate/versions/050_version_4_0_0.py --- a/rhodecode/lib/dbmigrate/versions/050_version_4_0_0.py +++ b/rhodecode/lib/dbmigrate/versions/050_version_4_0_0.py @@ -28,7 +28,7 @@ def downgrade(migrate_engine): def fixups(models, Session): for repo in models.Repository.get_all(): if repo.clone_uri: - print 'Encrypting clone uri in repo %s' % repo + log.info('Encrypting clone uri in repo %s', repo) flag_modified(repo, 'clone_uri') Session().add(repo)