lib/salus/report.rb
# Record a list of any errors that Salus encounters.
# These might be Salus code or from scanners.
Record a list of any errors that Salus encounters.
These might be Salus code or from scanners.
Record a list of any errors that Salus encounters . These might be Salus code or from scanners .
def salus_error(error_origin, error_data)
      if ENV['BUGSNAG_API_KEY'] && !ENV['RUNNING_SALUS_TESTS']
        Bugsnag.notify([error_origin, error_data])
      end
      @errors[error_origin] ||= []
      @errors[error_origin] << error_data
    end
def salus_error ( error_origin , error_data ) if ENV [ 'BUGSNAG_API_KEY' ] && ! ENV [ 'RUNNING_SALUS_TESTS' ] Bugsnag . notify ( [ error_origin , error_data ] ) end @errors [ error_origin ] ||= [ ] @errors [ error_origin ] << error_data end
Record a list of any errors that Salus encounters.
Record a list of any errors that Salus encounters .
# If we have a bugsnag api key and we're not running tests
error_origin
error_data