Replies: 4 comments 1 reply
-
Hi @clebergnu, I don't see a problem here. My opinion is that this should be inside the |
Beta Was this translation helpful? Give feedback.
-
I like option 1. I find, just like you, annoying that Avocado's default log level is Maybe, an extension to your idea is to separate the log streams in |
Beta Was this translation helpful? Give feedback.
-
I don' t see a problem here even with the drawbacks. If tests are doing
Not sure here. I would prefer to change core log messages that should not be shown to debug messages and use option 1. One constant complaint that we have today, it that is not straightforward to find errors in our logs. So I have a feeling that splitting this file or removing stuff from there is going to make this even worst. So, in summary, I'm moving some non-critical messages to debug (i.e core/development related) and disable debug by default. |
Beta Was this translation helpful? Give feedback.
-
This seems at least partially related to #4564 where we discussed what to include in the job.log. I have a few questions regarding the first proposal (setting the log level to INFO):
|
Beta Was this translation helpful? Give feedback.
-
While working on #4547, where it's suggested that a different logging names (such as
tasks
) be used for enabling/disabling specific information I came across a few problems.While my PoC version works in the sense that you can include information to be shown on the command line, say:
What I find annoying is that, because of job.output.loglevel and the current approach of including everything into the job logger (and thus into
job.log
), this debugging information would always be included in thejob.log
file.I thought of a few solutions to this, including:
job.output.loglevel
value toINFO
(instead ofDEBUG
)avocado.core
, would not be shown show by default)The problem with 1 is it would impact tests doing
logging.debug()
. But, given the proposed behavior forjob.log
and nrunner to not duplicate the test's log content into the job's log, I can look into separating this distinction. What I mean is that the test would remain at aDEBUG
log level, while the job would be bumped toINFO
.The problem with 2 is that it would add exception scenarios, which are both hard to understand and maintain.
Anyway, any feedback and further ideas are appreciated here. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions