Skip to content

Commit

Permalink
Merge pull request #56 from nicholasyager/feature/version_logging
Browse files Browse the repository at this point in the history
Feature: Add a log line for the dbt-loom version
  • Loading branch information
nicholasyager authored May 9, 2024
2 parents e49e5a1 + 05a327b commit 3368db3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dbt_loom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
"""
Expand Down Expand Up @@ -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")
)
Expand Down

0 comments on commit 3368db3

Please sign in to comment.