← Back to issue list

Brief Emitter mode still appears to be verbose when plugins are called ?

View original Github issue

Metadata

Project
craft-cli
Number
#243
Type
issue
State
open
Author
flotter
Labels
Created
2024-03-03 14:36:48+00:00
Updated
2024-04-12 17:59:20+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done I am not 100% sure if my observation is correct, but hopefully an expert could help me out ? I am starting the Emitter with ```streaming_brief=False``` In fact the CLI startup code in some secret craft project looks like this: ```python for lib_name in ("craft_providers", "craft_parts"): logger = logging.getLogger(lib_name) logger.setLevel(logging.DEBUG) emit.init( EmitterMode.BRIEF, "XXXcraft", f"Starting XXXcraft version {__version__}", log_filepath=logpath, streaming_brief=False, ) ``` and then inside my lifecycle code (not using craft-application, but doing the same thing) ```python with self._lcm.action_executor() as aex: emit.message("Processing firmware parts ...") for act in actions: emit.progress( f"{step_to_action(act.step, True)} {act.part_name!r} ..." ) with emit.open_stream() as stream: aex.execute([act], stdout=stream, stderr=stream) ``` However when I look at the plugin handler code, it looks like we are passing the stdout / stderr to the script so that whatever is processed by the script, will result in each shell line being echoed, and as a result, I see lots of lines: ```shell + ln ... .... + cp x .. y ``` See: craft-parts/craft_part/_create_and_run_script _create_and_run_script(..) I see the same detailed output from the **autotools** plugin. ### Why it needs to get done Am I missing a trick to suppress the detailed output while running a progress runner in BRIEF emitter mode ?

Evaluation history

No evaluation history available.