Skip to content

Commit

Permalink
oh my more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Sep 2, 2024
1 parent a2185eb commit f4f5022
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/resolvers/git.cr
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ module Shards
if Shards.local? && !Dir.exists?(path)
dependency_name = File.basename(path, ".git")
raise Error.new("Missing repository cache for #{dependency_name.inspect}. Please run without --local to fetch it.")
else
Log.debug { "running with --local and repository cache was found: #{path}" }
end

run_in_folder(command, path, capture)
end

Expand All @@ -434,7 +437,7 @@ module Shards
raise Error.new("Error missing git command line tool. Please install Git first!")
end

Log.debug { command }
Log.debug { "command: `#{command}` path: `#{path}` capture: `#{capture}` local_path: `#{local_path}`" }

output = capture ? IO::Memory.new : Process::Redirect::Close
error = IO::Memory.new
Expand Down

0 comments on commit f4f5022

Please sign in to comment.