diff --git a/lib/rackstash/adapter/file.rb b/lib/rackstash/adapter/file.rb index 0559184..e7e0a3d 100644 --- a/lib/rackstash/adapter/file.rb +++ b/lib/rackstash/adapter/file.rb @@ -129,7 +129,7 @@ module Rackstash @mutex.synchronize do auto_reopen - @file.write(line) + @file.syswrite(line) end nil end @@ -180,8 +180,7 @@ module Rackstash file = ::File.new( filename, - ::File::WRONLY | ::File::APPEND | ::File::CREAT, - external_encoding: Encoding::UTF_8 + ::File::WRONLY | ::File::APPEND | ::File::CREAT ) file.binmode file.sync = true