generate and config logs fix

This commit is contained in:
dal 2025-05-12 09:38:20 -06:00
parent 9f7985fb4b
commit 80bfde0dd4
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 0 additions and 27 deletions

View File

@ -383,7 +383,6 @@ for (unique_id, node) in &dbt_catalog.nodes {
&model_name_from_filename
) {
Some((node, match_type, key)) => {
println!(" 🔍 Found model via {}: {}", match_type, key.purple());
node
},
None => {
@ -400,11 +399,6 @@ for (unique_id, node) in &dbt_catalog.nodes {
// actual_model_name_in_yaml is from catalog metadata.name
let actual_model_name_in_yaml = table_meta.name.clone();
println!("➡️ Processing: SQL '{}' -> Catalog Model '{}' (UniqueID: {})",
sql_file_abs_path.display().to_string().cyan(),
actual_model_name_in_yaml.purple(),
catalog_node.unique_id.as_deref().unwrap_or("N/A").dimmed()
);
sql_models_successfully_processed_from_catalog_count += 1; // Increment here
let relative_sql_path_str = pathdiff::diff_paths(&sql_file_abs_path, &buster_config_dir)
@ -459,10 +453,6 @@ for (unique_id, node) in &dbt_catalog.nodes {
match existing_yaml_model_opt {
Some(mut existing_model) => {
// Model already exists, skip processing as per user request.
println!(" {} Semantic model already exists, skipping: {}", "⏭️".dimmed(), individual_semantic_yaml_path.display().to_string().dimmed());
// No updates or reconciliation will happen here.
// The counters for updated/removed/added columns are not relevant in this branch anymore.
}
None => { // New semantic model
let mut dimensions = Vec::new();

View File

@ -248,7 +248,6 @@ impl BusterConfig {
pub fn load_from_dir(dir: &Path) -> Result<Option<Self>> {
let config_path = dir.join("buster.yml");
if config_path.exists() {
println!(" Found buster.yml at {}", config_path.display());
let content = std::fs::read_to_string(&config_path)
.map_err(|e| anyhow!("Failed to read buster.yml: {}", e))?;
@ -284,22 +283,6 @@ impl BusterConfig {
println!(" Global Model paths: {:?}", paths);
}
// Log project-specific details if present
if let Some(ref projects) = config.projects {
println!(" Found {} project context(s):", projects.len());
for (i, project) in projects.iter().enumerate() {
let project_id = project.identifier(); // Use new identifier
println!(" - Project {}: {}", i + 1, project_id);
if let Some(ref ds) = project.data_source_name { println!(" Data Source: {}", ds); }
if let Some(ref db) = project.database { println!(" Database: {}", db); }
if let Some(ref sc) = project.schema { println!(" Schema: {}", sc); }
if let Some(ref mp) = project.model_paths { println!(" Model Paths: {:?}", mp); }
if let Some(ref ef) = project.exclude_files { println!(" Exclude Files: {:?}", ef); }
if let Some(ref et) = project.exclude_tags { println!(" Exclude Tags: {:?}", et); }
}
}
// --- End Logging ---
Ok(Some(config))
} else {
println!(" No buster.yml found at {}, using default configuration.", dir.display());