Sha256: 758e23c3169fb2f7d362052e58c7635085c5c76a36358a45512812d9bb0028bb

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

module SafeLog

  # Filters api_key
  # @return [String]
  def mask_api_key(str)
    if use_api_key && api_key && str
      str = str.gsub(api_key,'[SECRET]')
    end
    str
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logical_model-0.4.8 lib/safe_log.rb
logical_model-0.4.7 lib/safe_log.rb
logical_model-0.4.6 lib/safe_log.rb