We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef311cc commit 6ecea8dCopy full SHA for 6ecea8d
lib/logtail/current_context.rb
@@ -147,7 +147,7 @@ def build_initial_hash
147
end
148
149
# System context
150
- hostname = Socket.gethostname&.force_encoding('UTF-8')
+ hostname = Socket.gethostname.force_encoding('UTF-8')
151
pid = Process.pid
152
system_context = Contexts::System.new(hostname: hostname, pid: pid)
153
new_hash.merge!(system_context.to_hash)
0 commit comments