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

attempt to make the log directory if missing

هذا الالتزام موجود في:
Adam Cooke
2017-05-18 11:44:52 +01:00
الأصل 90d534574d
التزام b1048b6986

عرض الملف

@@ -86,6 +86,7 @@ module Postal
if config.logging.stdout || ENV['LOG_TO_STDOUT'] if config.logging.stdout || ENV['LOG_TO_STDOUT']
Postal::AppLogger.new(name, STDOUT) Postal::AppLogger.new(name, STDOUT)
else else
FileUtils.mkdir_p(log_root)
Postal::AppLogger.new(name, log_root.join("#{name}.log"), config.logging.max_log_files, config.logging.max_log_file_size.megabytes) Postal::AppLogger.new(name, log_root.join("#{name}.log"), config.logging.max_log_files, config.logging.max_log_file_size.megabytes)
end end
end end