Skip to content

Commit 4be05c2

Browse files
committed
Use __FILE__ for wasm
`/dev/null` is not available on wasm.
1 parent 97bce95 commit 4be05c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger/log_device.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def shift_log_period(period_end)
223223
end
224224
end
225225

226-
File.open(IO::NULL) do |f|
226+
File.open(__FILE__) do |f|
227227
File.new(f.fileno, autoclose: false, path: "").path
228228
rescue IOError
229229
module PathAttr # :nodoc:

0 commit comments

Comments
 (0)