Skip to content

Commit e0ed64e

Browse files
authored
Update utils.ex
1 parent 8dc4a37 commit e0ed64e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/utils.ex

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
defmodule AxonDatasets.Utils do
2+
@moduledoc false
3+
require Logger
4+
25
def unzip_cache_or_download(base_url, zip, data_path) do
36
path = Path.join(data_path, zip)
47

58
data =
69
if File.exists?(path) do
7-
IO.puts("Using #{zip} from #{data_path}\n")
10+
Logger.debug("Using #{zip} from #{data_path}\n")
811
File.read!(path)
912
else
10-
IO.puts("Fetching #{zip} from #{base_url}\n")
13+
Logger.debug("Fetching #{zip} from #{base_url}\n")
1114
:inets.start()
1215
:ssl.start()
1316

0 commit comments

Comments
 (0)