@@ -298,23 +298,27 @@ def render_package_metadata(self, renderer: PackageRenderer) -> ProjectPackageMe
298298 raise DbtProjectError ("Package dbt_project.yml must have a name!" )
299299 return ProjectPackageMetadata (self .project_name , packages_config .packages )
300300
301- def check_config_path (self , project_dict , deprecated_path , exp_path ):
301+ def check_config_path (
302+ self , project_dict , deprecated_path , expected_path = None , default_value = None
303+ ):
302304 if deprecated_path in project_dict :
303- if exp_path in project_dict :
305+ if expected_path in project_dict :
304306 msg = (
305- "{deprecated_path} and {exp_path } cannot both be defined. The "
306- "`{deprecated_path}` config has been deprecated in favor of `{exp_path }`. "
307+ "{deprecated_path} and {expected_path } cannot both be defined. The "
308+ "`{deprecated_path}` config has been deprecated in favor of `{expected_path }`. "
307309 "Please update your `dbt_project.yml` configuration to reflect this "
308310 "change."
309311 )
310312 raise DbtProjectError (
311- msg .format (deprecated_path = deprecated_path , exp_path = exp_path )
313+ msg .format (deprecated_path = deprecated_path , expected_path = expected_path )
314+ )
315+ # this field is no longer supported, but many projects may specify it with the default value
316+ # if so, let's only raise this deprecation warning if they set a custom value
317+ if not default_value or project_dict [deprecated_path ] != default_value :
318+ deprecations .warn (
319+ f"project-config-{ deprecated_path } " ,
320+ deprecated_path = deprecated_path ,
312321 )
313- deprecations .warn (
314- f"project-config-{ deprecated_path } " ,
315- deprecated_path = deprecated_path ,
316- exp_path = exp_path ,
317- )
318322
319323 def create_project (self , rendered : RenderComponents ) -> "Project" :
320324 unrendered = RenderComponents (
@@ -329,6 +333,8 @@ def create_project(self, rendered: RenderComponents) -> "Project":
329333
330334 self .check_config_path (rendered .project_dict , "source-paths" , "model-paths" )
331335 self .check_config_path (rendered .project_dict , "data-paths" , "seed-paths" )
336+ self .check_config_path (rendered .project_dict , "log-path" , default_value = "logs" )
337+ self .check_config_path (rendered .project_dict , "target-path" , default_value = "target" )
332338
333339 try :
334340 ProjectContract .validate (rendered .project_dict )
0 commit comments