Sha256: 008a81889cf5353b8a1806e60d1c157aa9a122f5685c609bd1a14a131fbcd928

Contents?: true

Size: 673 Bytes

Versions: 15

Compression:

Stored size: 673 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 = 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/]
  config.ignore_patterns << "Fail claimed jobs" # random Solid Queue warning
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hephaestus-0.8.16.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.16 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15.5 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15.4 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15.3 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.15 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.14 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.13 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.12.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.12.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.12 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.11 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.10 config/initializers/slack_webhook_logger.rb