diff --git a/apps/amethyst/lib/amethyst.ex b/apps/amethyst/lib/amethyst.ex index 564e1af..0344dcb 100644 --- a/apps/amethyst/lib/amethyst.ex +++ b/apps/amethyst/lib/amethyst.ex @@ -36,6 +36,7 @@ defmodule Amethyst.Application do name: Amethyst.BlockRegistry}, Supervisor.child_spec( {Task, fn -> + # TODO: not this Amethyst.DataGenerator.generate_and_populate_data( :latest, "/tmp/server.jar", diff --git a/apps/amethyst/lib/datagen.ex b/apps/amethyst/lib/datagen.ex index c3645b3..90948f5 100644 --- a/apps/amethyst/lib/datagen.ex +++ b/apps/amethyst/lib/datagen.ex @@ -102,6 +102,7 @@ defmodule Amethyst.DataGenerator do {:ok, jar_path} -> case generate_data_files(jar_path, data_dir, java_bin) do {:ok, data_path} -> + Logger.info("Finished generating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms") populate_blockregistry(data_path) Logger.info("Finished generating and populating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms") {:error, code} -> {:error, code}