Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to turn down verbosity #302

Open
2 tasks done
h-vetinari opened this issue May 3, 2023 · 4 comments
Open
2 tasks done

Option to turn down verbosity #302

h-vetinari opened this issue May 3, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@h-vetinari
Copy link

Make sure you completed the following tasks

Found boostorg/build#348 which mentions:

[...] common.copy (which is in fact overly verbose when it comes to installing the headers. :-) )

Environment and version details

  • Operating System+version: windows
  • Compiler+version: MSVC
  • Shell: Batch
  • B2 Version: Bootstrapped from boost 1.82

Describe your use case

A default boost install will install about ~15000 headers. Each of those headers generates 3 lines of logs, à la:

common.copy %SRC_DIR%\temp_prefix\include\boost\type.hpp
%SRC_DIR%\boost\type.hpp
       1 file(s) copied.

This generates 10's of thousands of useless lines in the logs that make them unnecessarily hard to navigate.

Describe the solution you'd like

An option --quiet or --verbose=<level>

Alternatives, if applicable

...

Additional context

Stunned that this does not exist already (I tried looking in the docs & the internet, but didn't find anything).

@h-vetinari h-vetinari added the enhancement New feature or request label May 3, 2023
@Kojoley
Copy link
Contributor

Kojoley commented May 4, 2023

I would also considered this a performance issue because currently virtual-targets.register is a huge bottle-neck, 3568793 out of 3687209 (96.8%) calls are to register these headers.

@grafikrobot
Copy link
Member

There are two issues in this:

@pdimov
Copy link
Contributor

pdimov commented May 23, 2024

I think that this is why I made --with-headers work, so that one can two-phase install as in

b2 -d0 --with-headers install
b2 install

@Kojoley
Copy link
Contributor

Kojoley commented May 23, 2024

I think 1 file(s) copied. output should be always suppressed (I have a PR for the same thing in tests #390).

copy action could be defined with quietly modifier like mkdir already does so common.copy ... lines will appear only with -d+2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants