Skip to content

Commit

Permalink
Use __FILE__ for wasm
Browse files Browse the repository at this point in the history
`/dev/null` is not available on wasm.
  • Loading branch information
nobu committed Dec 19, 2024
1 parent 97bce95 commit 4be05c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger/log_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def shift_log_period(period_end)
end
end

File.open(IO::NULL) do |f|
File.open(__FILE__) do |f|
File.new(f.fileno, autoclose: false, path: "").path
rescue IOError
module PathAttr # :nodoc:
Expand Down

0 comments on commit 4be05c2

Please sign in to comment.