lib/logtail/current_context.rb in logtail-ruby-0.1.0 vs lib/logtail/current_context.rb in logtail-ruby-0.1.1
- old
+ new
@@ -145,10 +145,10 @@
if release_context != {}
new_hash.merge!({release: release_context})
end
# System context
- hostname = Socket.gethostname
+ hostname = Socket.gethostname.force_encoding('UTF-8')
pid = Process.pid
system_context = Contexts::System.new(hostname: hostname, pid: pid)
new_hash.merge!(system_context.to_hash)
# Runtime context