From 70a854c2ce90194a943b6e007a1515dfc87314eb Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 26 Jun 2024 11:34:04 +0200 Subject: just: shorten repeated mentioning of the top-level target The build tool prints status messages at the end of each of the major stages that sequentially follow each other. This allows, in particular when using log files (that contain time stamps) to quickly identify which phase was the resource consuming one. All these message mention the (same!) configured target that is process by this invocation of the build tool. In the presence of toolchains, the configuration can, however, get quite large (containing lots of paths to various tools). Therefore, shorted the configuration in the repeated menions if it is very long (currenlty 320 characters); as we do not change the first mentinoing ("Requested target is ..."), even with that shortening the log contains the same information. --- src/buildtool/main/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index f107e38f..5a8b0bcf 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -1053,7 +1053,7 @@ auto main(int argc, char* argv[]) -> int { #ifndef BOOTSTRAP_BUILD_TOOL Logger::Log(LogLevel::Info, "Analysed target {}", - result->id.ToString()); + result->id.ToShortString()); { auto cached = stats.ExportsCachedCounter(); @@ -1093,7 +1093,7 @@ auto main(int argc, char* argv[]) -> int { result->modified ? fmt::format(" input of action {} of", *(result->modified)) : "", - result->id.ToString()); + result->id.ToShortString()); auto build_result = traverser.BuildAndStage(artifacts, -- cgit v1.2.3