From 05a327b6b7a1f3ffd796c28a358f1c301cb30567 Mon Sep 17 00:00:00 2001 From: Nicholas Yager Date: Wed, 8 May 2024 21:04:04 -0400 Subject: [PATCH] feat: Add a log line for the dbt-loom version --- dbt_loom/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dbt_loom/__init__.py b/dbt_loom/__init__.py index 92b171a..18302d6 100644 --- a/dbt_loom/__init__.py +++ b/dbt_loom/__init__.py @@ -15,6 +15,8 @@ from dbt_loom.config import dbtLoomConfig from dbt_loom.manifests import ManifestLoader, ManifestNode +import importlib.metadata + def identify_node_subgraph(manifest) -> Dict[str, ManifestNode]: """ @@ -80,6 +82,11 @@ class dbtLoom(dbtPlugin): """ def __init__(self, project_name: str): + # Log the version of dbt-loom being intialized + fire_event( + Note(msg=f'Initializing dbt-loom={importlib.metadata.version("dbt-loom")}') + ) + configuration_path = Path( os.environ.get("DBT_LOOM_CONFIG", "dbt_loom.config.yml") )