From b4cb8cb20401f1814ac2b133a798767b033b82e8 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 10 Jan 2025 18:02:16 +0000 Subject: [PATCH] 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 --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 64f69eacae0..8fd9a7127ad 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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