1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

chore: allow config location message to be suppressed

هذا الالتزام موجود في:
Adam Cooke
2024-03-13 19:06:25 +00:00
الأصل b55becd2ec
التزام f760cdb5a1

عرض الملف

@@ -43,7 +43,9 @@ module Postal
# 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)