DEV: Move 'symlinking fonts' message to STDERR (#30699)

Having it in stdout means it pollutes the output of some scripts & rake tasks, which then gets piped to other tooling
This commit is contained in:
David Taylor 2025-01-10 18:02:16 +00:00 committed by GitHub
parent 6a50b3d4b4
commit b4cb8cb204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,7 +236,7 @@ module Discourse
# Use discourse-fonts gem to symlink fonts and generate .scss file
fonts_path = File.join(config.root, "public/fonts")
if !File.exist?(fonts_path) || File.realpath(fonts_path) != DiscourseFonts.path_for_fonts
puts "Symlinking fonts from discourse-fonts gem"
STDERR.puts "Symlinking fonts from discourse-fonts gem"
File.delete(fonts_path) if File.exist?(fonts_path)
Discourse::Utils.atomic_ln_s(DiscourseFonts.path_for_fonts, fonts_path)
end