Skip to content

Commit 6af2b40

Browse files
committed
Add log context for hg
1 parent eaff116 commit 6af2b40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/resolvers/hg.cr

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,10 @@ module Shards
441441
raise Error.new("Error missing hg command line tool. Please install Mercurial first!")
442442
end
443443

444-
Log.debug { command }
444+
Log.with_context do
445+
Log.context.set package: name
446+
Log.debug { command }
447+
end
445448

446449
output = capture ? IO::Memory.new : Process::Redirect::Close
447450
error = IO::Memory.new

0 commit comments

Comments
 (0)