Commit bbae66ffcc8a0fd1318a4cb5617677fa1c75fed8

Authored by Anton Minin
1 parent 13faed55
Exists in master

Get hostname from the hostname key

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/airbrake_api/v3/notice_parser.rb
@@ -84,7 +84,7 @@ module AirbrakeApi @@ -84,7 +84,7 @@ module AirbrakeApi
84 end 84 end
85 85
86 def hostname 86 def hostname
87 - URI.parse(url).hostname 87 + context['hostname'] || URI.parse(url).hostname
88 rescue URI::InvalidURIError 88 rescue URI::InvalidURIError
89 '' 89 ''
90 end 90 end