From 19e59418aa4d07fcb2b48ed571a24ac2ce1dd6fe Mon Sep 17 00:00:00 2001 From: Delisa Mason Date: Wed, 28 Mar 2018 13:01:03 -0700 Subject: [PATCH] Make progname private, lowercase --- lib/bugsnag/configuration.rb | 3 ++- spec/configuration_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/bugsnag/configuration.rb b/lib/bugsnag/configuration.rb index b0e756a62..7d2f6aa33 100644 --- a/lib/bugsnag/configuration.rb +++ b/lib/bugsnag/configuration.rb @@ -41,7 +41,6 @@ class Configuration THREAD_LOCAL_NAME = "bugsnag_req_data" DEFAULT_ENDPOINT = "https://notify.bugsnag.com" DEFAULT_SESSION_ENDPOINT = "https://sessions.bugsnag.com" - PROG_NAME = "[BUGSNAG]" DEFAULT_META_DATA_FILTERS = [ /authorization/i, @@ -187,6 +186,8 @@ def debug(message) private + PROG_NAME = "[Bugsnag]" + def default_hostname # Send the heroku dyno name instead of hostname if available ENV["DYNO"] || Socket.gethostname; diff --git a/spec/configuration_spec.rb b/spec/configuration_spec.rb index e80cc224f..d2a317dbf 100644 --- a/spec/configuration_spec.rb +++ b/spec/configuration_spec.rb @@ -73,7 +73,7 @@ def debug(name, &block) log = @logger.logs.first expect(log).to eq({ :level => "info", - :name => "[BUGSNAG]", + :name => "[Bugsnag]", :message => "Info message" }) end @@ -85,7 +85,7 @@ def debug(name, &block) log = @logger.logs.first expect(log).to eq({ :level => "warning", - :name => "[BUGSNAG]", + :name => "[Bugsnag]", :message => "Warning message" }) end @@ -97,7 +97,7 @@ def debug(name, &block) log = @logger.logs.first expect(log).to eq({ :level => "debug", - :name => "[BUGSNAG]", + :name => "[Bugsnag]", :message => "Debug message" }) end