How to filter out scenario:background step:
logs?
#321
Unanswered
RemiBardon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using Cucumber to test a Rocket API, and it's going great so far. However to improve the developer experience when implementing red/blue steps, I enabled logging. Now because of Rocket saying a lot of stuff when booting, my Cucumber logs are very long.
I don't want to turn off all Rocket booting logs, as some of them are useful in a few steps, but when Rocket boots in a background step, it's because it does not represent meaningful information in the current scenario.
How do I get rid of logs prefixed by
scenario:background step:
and keep onlyscenario:step:
-prefixed ones?I tried messing up with
configure_and_init_tracing
andtracing_subscriber
, but the only thing I managed to do is get duplicated logs and with the cucumber prefix gone…Side question: is there a way to avoid logging when a step succeeds?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions