From a4b09c79e8677e2baedf08b043a9733224e1400b Mon Sep 17 00:00:00 2001 From: isaac yonemoto Date: Sun, 4 Aug 2024 18:02:22 -0500 Subject: [PATCH] logging on command search --- lib/zig/command.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/zig/command.ex b/lib/zig/command.ex index bbbab735..1a3a14fb 100644 --- a/lib/zig/command.ex +++ b/lib/zig/command.ex @@ -134,12 +134,15 @@ defmodule Zig.Command do cond do path = find_from_env() -> + Logger.info("zig expected (via env variable) in #{path}") path path = find_in_basedir() -> + Logger.info("zig expected (via cache) in #{path}") path path = System.find_executable("zig") -> + Logger.info("system zig found in #{path}") path true -> @@ -165,6 +168,9 @@ defmodule Zig.Command do {os, arch} = os_info() zig_executable = Path.join(path, "zig-#{os}-#{arch}-#{@default_version}/zig") + + Logger.info("searching for zig in #{zig_executable}") + if File.exists?(zig_executable), do: zig_executable end