Skip to content

Commit

Permalink
Merge pull request #963 from rollbar/wj-rollbar-log-comment
Browse files Browse the repository at this point in the history
Fix code comment to use level argument in examples
  • Loading branch information
waltjones committed May 20, 2020
2 parents 1b684f9 + 0570f76 commit b458cf0
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 b458cf0

Please sign in to comment.