From bbae66ffcc8a0fd1318a4cb5617677fa1c75fed8 Mon Sep 17 00:00:00 2001 From: Anton Minin Date: Fri, 18 Mar 2016 21:41:51 +0300 Subject: [PATCH] Get hostname from the hostname key --- lib/airbrake_api/v3/notice_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/airbrake_api/v3/notice_parser.rb b/lib/airbrake_api/v3/notice_parser.rb index 1a9018f..db6689e 100644 --- a/lib/airbrake_api/v3/notice_parser.rb +++ b/lib/airbrake_api/v3/notice_parser.rb @@ -84,7 +84,7 @@ module AirbrakeApi end def hostname - URI.parse(url).hostname + context['hostname'] || URI.parse(url).hostname rescue URI::InvalidURIError '' end -- libgit2 0.21.2