From c81e4fda67b7d5f29d6ef999cde1d2e3ea6de281 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Tue, 11 Jun 2024 12:02:14 +0000 Subject: [PATCH] chore(growth): add log in loader --- lib/growth/indicators/load.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/growth/indicators/load.ex b/lib/growth/indicators/load.ex index 95659f4..b86af07 100644 --- a/lib/growth/indicators/load.ex +++ b/lib/growth/indicators/load.ex @@ -34,6 +34,8 @@ defmodule Growth.Indicators.Load do use Task + require Logger + alias Growth.Score @measure_to_score [ @@ -62,6 +64,8 @@ defmodule Growth.Indicators.Load do Load indicators csv files into their own ets tables. """ def all do + Logger.debug("load growth indicators") + "priv/growth/indicators/*.csv" |> Path.wildcard() |> Enum.map(&create_ets_from_filename/1) @@ -107,6 +111,8 @@ defmodule Growth.Indicators.Load do Read, convert, and load a measure/filename into the proper ets table. """ def load_measure({measure, filename}) do + Logger.debug("load data from #{filename} into #{measure}") + filename |> read() |> convert()