Skip to content

Commit

Permalink
Make progname private, lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Mar 28, 2018
1 parent a5e2060 commit 19e5941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/bugsnag/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 19e5941

Please sign in to comment.