diff --git a/core/dbt/deprecations.py b/core/dbt/deprecations.py index f3df82cc606..8a42d4311fe 100644 --- a/core/dbt/deprecations.py +++ b/core/dbt/deprecations.py @@ -36,9 +36,9 @@ def show(self, *args, **kwargs) -> None: if self.name not in active_deprecations: desc = self.description.format(**kwargs) msg = ui.line_wrap_message( - desc, prefix='* Deprecation Warning:\n\n' + desc, prefix='Deprecated functionality\n\n' ) - dbt.exceptions.warn_or_error(msg) + dbt.exceptions.warn_or_error(msg, log_fmt=ui.warning_tag('{}')) self.track_deprecation_warn() active_deprecations.add(self.name) @@ -62,7 +62,7 @@ class PackageInstallPathDeprecation(DBTDeprecation): class ConfigPathDeprecation(DBTDeprecation): _description = '''\ - The `{deprecated_path}` config has been deprecated in favor of `{exp_path}`. + The `{deprecated_path}` config has been renamed to `{exp_path}`. Please update your `dbt_project.yml` configuration to reflect this change. ''' diff --git a/test/integration/012_deprecation_tests/test_deprecations.py b/test/integration/012_deprecation_tests/test_deprecations.py index 267fc0168c1..a0b4497036a 100644 --- a/test/integration/012_deprecation_tests/test_deprecations.py +++ b/test/integration/012_deprecation_tests/test_deprecations.py @@ -43,7 +43,7 @@ def test_postgres_data_path_fail(self): with self.assertRaises(dbt.exceptions.CompilationException) as exc: self.run_dbt(['--warn-error', 'debug']) exc_str = ' '.join(str(exc.exception).split()) # flatten all whitespace - expected = "The `data-paths` config has been deprecated" + expected = "The `data-paths` config has been renamed" assert expected in exc_str