Skip to content

Commit

Permalink
fix: fix error raised when attempting to log warning when webhook_red…
Browse files Browse the repository at this point in the history
…act_sensitive_data is set to false
  • Loading branch information
bethesque committed Jun 9, 2023
1 parent 1127b41 commit 9b66270
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def log_configuration(logger)
source: source_info.dig(key, :source) || source_info.dig(key) || { type: :defaults }
}
end.sort_by { |key, _| key }.each { |key, value| log_config_inner(key, value, logger) }
print_warnings
print_warnings(logger)
end

def attributes_to_log
Expand Down Expand Up @@ -72,7 +72,7 @@ def redact name, value
end
private :redact

def print_warnings
def print_warnings(logger)
if self.webhook_redact_sensitive_data == false
logger.warn("WARNING!!! webhook_redact_sensitive_data is set to false. This will allow authentication information to be included in the webhook logs. This should only be used for debugging purposes. Do not run the application permanently in production with this value.")
end
Expand Down

0 comments on commit 9b66270

Please sign in to comment.