Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
74 stars 57 forks source link

[cbuild] using --verbose also prints --debug messages. #1756

Closed ReinhardKeil closed 2 weeks ago

ReinhardKeil commented 3 weeks ago

Describe the bug --verbose is an option that delivers more information about the build steps, but it also outputs debug information.

To Reproduce

See example in #1752 and use --verbose

info cbuild: Build Invocation v2.5.0-17-g40fe18b (C) 2024 Arm Ltd. and Contributors
debug cbuild: CMSIS_PACK_ROOT: C:\Users\reikei01\AppData\Local\Arm\Packs
debug cbuild: CMSIS_COMPILER_ROOT: C:\Keil_v5\ARM\cmsis-toolbox\etc
C:/Test/Blank4/Blank4.cbuild-set.yml - info csolution: file is already up-to-date
info csolution: config files for each component:
  Analog Devices::Device:Startup@1.0.0:
    - C:/Test/Blank4/Project/RTE/Device/ADuCM320/startup_ADuCM320.s (base@0.3.0)
    - C:/Test/Blank4/Project/RTE/Device/ADuCM320/system_ADUCM320.c (base@0.1.0)
  AnalogDevices::Device:Peripheral Libraries:ADC@1.0.0:
    - C:/Test/Blank4/Project/RTE/Device/ADuCM320/AdcLib.c (base@1.0.2)
    - C:/Test/Blank4/Project/RTE/Device/ADuCM320/AdcLib.h (base@1.0.2)
C:/Test/Blank4/Blank4.cbuild-pack.yml - info csolution: file is already up-to-date
C:/Test/Blank4/Project/Project.Debug+ADuCM320-Board.cbuild.yml - info csolution: file is already up-to-date
C:/Test/Blank4/Blank4.cbuild-idx.yml - info csolution: file is already up-to-date
debug cbuild: csolution command: csolution convert --solution=Blank4.csolution.yml --load=required --no-check-schema --no-update-rte --context-set --verbose
info cbuild: Processing 1 context(s)
info cbuild: Retrieve build information for context: "Project.Debug+ADuCM320-Board"
+-----------------------------------------------------
(1/1) Building context: "Project.Debug+ADuCM320-Board"
debug cbuild: vars.binPath: C:\Keil_v5\ARM\cmsis-toolbox\bin
debug cbuild: vars.etcPath: C:\Keil_v5\ARM\cmsis-toolbox\etc
debug cbuild: vars.cbuildgenBin: C:\Keil_v5\ARM\cmsis-toolbox\bin\cbuildgen.exe
debug cbuild: vars.cpackgetBin: C:\Keil_v5\ARM\cmsis-toolbox\bin\cpackget.exe
debug cbuild: vars.xmllintBin: 
debug cbuild: vars.cmakeBin: c:\Users\reikei01\.vcpkg\artifacts\2139c4c6\tools.kitware.cmake\3.28.4\bin\cmake.exe
debug cbuild: vars.ninjaBin: c:\Users\reikei01\.vcpkg\artifacts\2139c4c6\tools.ninja.build.ninja\1.12.0\ninja.exe
debug cbuild: CMSIS_PACK_ROOT: C:\Users\reikei01\AppData\Local\Arm\Packs
debug cbuild: CMSIS_COMPILER_ROOT: C:\Keil_v5\ARM\cmsis-toolbox\etc
debug cbuild: dirs.IntDir: C:\Test\Blank4\tmp
debug cbuild: dirs.OutDir: C:\Test\Blank4\out\Project\ADuCM320-Board\Debug
info cbuild2cmake: Generate CMakeLists v0.9.2-25-gea571f7 (C) 2024 Arm Ltd. and Contributors
info cbuild2cmake: CMakeLists were successfully generated in the C:/Test/Blank4/tmp directory

Expected behavior

Debug outputs are only enabled using the option --debug.

Environment: