about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2023-10-02 16:09:41 -0400
committerGitHub <noreply@github.com>2023-10-02 16:09:41 -0400
commit14f624901853c1ce36c91262448d08ffbff6c1ce (patch)
treeaf11c18caf8e9c7b312c41d49e2e62ef7a2f1189
parent8e47113d71ed3922084571d70deba661f0a20001 (diff)
parent88b99851a2b06be72152e0bc294d46500d17c7ee (diff)
downloadrust-14f624901853c1ce36c91262448d08ffbff6c1ce.tar.gz
rust-14f624901853c1ce36c91262448d08ffbff6c1ce.zip
Rollup merge of #114453 - Kobzol:ci-group-stdout, r=onur-ozkan
Print GHA log groups to stdout instead of stderr

In all other places (e.g. `bootstrap.py`, `opt-dist`), we use stdout instead of stderr. I think that using stderr might be causing some discrepancies in the log, where sometimes the contents of a group "leak" outside the group. Let's see what happens if we use stdout instead. It's possible that it will be worse, since we print most stuff to stderr (?).

r? `@ghost`
-rw-r--r--src/tools/build_helper/src/ci.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/build_helper/src/ci.rs b/src/tools/build_helper/src/ci.rs
index a8505ec9596..09489b0d9b7 100644
--- a/src/tools/build_helper/src/ci.rs
+++ b/src/tools/build_helper/src/ci.rs
@@ -82,15 +82,15 @@ pub mod gha {
 
     fn start_group(name: impl std::fmt::Display) {
         if is_in_gha() {
-            eprintln!("::group::{name}");
+            println!("::group::{name}");
         } else {
-            eprintln!("{name}")
+            println!("{name}")
         }
     }
 
     fn end_group() {
         if is_in_gha() {
-            eprintln!("::endgroup::");
+            println!("::endgroup::");
         }
     }