Sha256: f7ea335c49189a7f566308e3bdec19b0efc6710fd0644eb37386b956f25ef7ff

Contents?: true

Size: 635 Bytes

Versions: 12

Compression:

Stored size: 635 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_#{Rails.env.upcase}_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

12 entries across 12 versions & 1 rubygems

Version Path
hephaestus-0.8.6 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.5 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.4.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.4 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.3.4 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.3.3 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.3.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.3.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.3 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.2 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.1 config/initializers/slack_webhook_logger.rb
hephaestus-0.8.0 config/initializers/slack_webhook_logger.rb