Skip to content

Commit

Permalink
chore: allow config location message to be suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Mar 13, 2024
1 parent b55becd commit f760cdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/postal/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def initialize_config
# key is a legacy file whereas new-style config files will include
# the 'version: 2' key/value.
if File.file?(config_file_path)
puts "Loading config from #{config_file_path}"
unless ENV.fetch("SILENCE_POSTAL_CONFIG_LOCATION_MESSAGE", "false") == "true"
warn "Loading config from #{config_file_path}"
end

config_file = File.read(config_file_path)
yaml = YAML.safe_load(config_file)
Expand Down

0 comments on commit f760cdb

Please sign in to comment.