Skip to content

Commit 6ecea8d

Browse files
committed
1 parent ef311cc commit 6ecea8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logtail/current_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def build_initial_hash
147147
end
148148

149149
# System context
150-
hostname = Socket.gethostname&.force_encoding('UTF-8')
150+
hostname = Socket.gethostname.force_encoding('UTF-8')
151151
pid = Process.pid
152152
system_context = Contexts::System.new(hostname: hostname, pid: pid)
153153
new_hash.merge!(system_context.to_hash)

0 commit comments

Comments
 (0)