Skip to content

Commit

Permalink
Log DBT execution in runDBT function
Browse files Browse the repository at this point in the history
Added an info-level log statement to track the execution of the `dbt` command within the `runDBT` function. This helps in monitoring and debugging the DBT runs by providing visibility into when the command is initiated.
  • Loading branch information
billettc committed Sep 13, 2024
1 parent e6913b3 commit 5aee070
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/honey-tracker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func main() {

func runDBT(logger *zap.Logger) error {
for {
logger.Info("running dbt")
cmd := exec.Command("/usr/local/bin/dbt", "run", "--profiles-dir", "/app/hivemapper", "--project-dir", "/app/hivemapper")
output, err := cmd.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit 5aee070

Please sign in to comment.