Sha256: b0f8710effacee5f8cbb1cd7d9477c9fc047bb17277b9b0c0e1e8f0defa6cef9

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "slack_webhook_logger"

SlackWebhookLogger.setup do |config|
  # Webhook URL
  #
  # The URL where messages will be sent.
  config.webhook_url = Hephaestus::Engine.fetch_infra_secret(
    label: "SLACK_LOG_URL",
    default: "https://slack.com/the_log_room",
  )

  # The minimum error level to see in Slack.
  #
  # All log levels are supported, but don't do anything less then :warn since Slack only allows one message
  # per minute.
  config.level = :WARN

  config.ignore_patterns = [/Can't verify CSRF token authenticity/, /is not a valid MIME type/]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hephaestus-0.8.7 config/initializers/slack_webhook_logger.rb