Skip to content

Commit

Permalink
doc: fix code comment to use level argument in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed May 20, 2020
1 parent 1b684f9 commit 0570f76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/rollbar/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ def silenced

# Sends a report to Rollbar.
#
# Accepts any number of arguments. The last String argument will become
# the message or description of the report. The last Exception argument
# will become the associated exception for the report. The last hash
# argument will be used as the extra data for the report.
# Accepts a level string plus any number of arguments. The last String
# argument will become the message or description of the report. The last
# Exception argument will become the associated exception for the report.
# The last hash argument will be used as the extra data for the report.
#
# If the extra hash contains a symbol key :custom_data_method_context
# the value of the key will be used as the context for
Expand All @@ -118,14 +118,14 @@ def silenced
# begin
# foo = bar
# rescue => e
# Rollbar.log(e)
# Rollbar.log('error', e)
# end
#
# @example
# Rollbar.log('This is a simple log message')
# Rollbar.log('info', 'This is a simple log message')
#
# @example
# Rollbar.log(e, 'This is a description of the exception')
# Rollbar.log('error', e, 'This is a description of the exception')
#
def log(level, *args)
return 'disabled' unless enabled?
Expand Down

0 comments on commit 0570f76

Please sign in to comment.