@@ -166,10 +166,13 @@ def autogenerate(
166166 if not project_root .exists ():
167167 raise FileNotFoundError (f"Project root not found: { project_root } " )
168168 with LogTime ("Project configuration auto-generation" , logger = log ):
169+ log .info ("Project root: %s" , project_root )
169170 project_name = project_name or project_root .name
170171 if languages is None :
171172 # determine languages automatically
173+ log .info ("Determining programming languages used in the project" )
172174 language_composition = determine_programming_language_composition (str (project_root ))
175+ log .info ("Language composition: %s" , language_composition )
173176 if len (language_composition ) == 0 :
174177 language_values = ", " .join ([lang .value for lang in Language ])
175178 raise ValueError (
@@ -205,13 +208,16 @@ def autogenerate(
205208 if enable :
206209 languages_to_use .append (lang .value )
207210 print ()
211+ log .info ("Using languages: %s" , languages_to_use )
208212 else :
209213 languages_to_use = [lang .value for lang in languages ]
210214 config_with_comments = cls .load_commented_map (PROJECT_TEMPLATE_FILE )
211215 config_with_comments ["project_name" ] = project_name
212216 config_with_comments ["languages" ] = languages_to_use
213217 if save_to_disk :
214- save_yaml (cls .path_to_project_yml (project_root ), config_with_comments , preserve_comments = True )
218+ project_yml_path = cls .path_to_project_yml (project_root )
219+ log .info ("Saving project configuration to %s" , project_yml_path )
220+ save_yaml (project_yml_path , config_with_comments , preserve_comments = True )
215221 return cls ._from_dict (config_with_comments )
216222
217223 @classmethod
0 commit comments