Skip to content

Commit

Permalink
Moving logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Sep 3, 2024
1 parent 30f0da7 commit f09ccea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ defmodule FLAME.CodeSync do

:ok = :erl_tar.close(tar)

if code.verbose do
log_verbose("packaged size: #{File.stat!(out_path).size / (1024 * 1024)}mb")
end

File.stream!(out_path, [], code.chunk_size)
end

Expand Down
1 change: 0 additions & 1 deletion lib/flame/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ defmodule FLAME.Pool do
if code_sync_opts = opts[:code_sync] do
code_sync = CodeSync.new(Keyword.put(code_sync_opts, :sync_beams, []))
%CodeSync.PackagedStream{} = parent_stream = CodeSync.package_to_stream(code_sync)
IO.inspect(File.stat!(parent_stream.stream.path))
parent_stream
end

Expand Down

0 comments on commit f09ccea

Please sign in to comment.