I'd like to use PySys' log from other modules of my testing framework in order to keep all the activity from the testcase's execution in the same place (run.log). The approach followed was to include the next statement
from pysys import log
and using the log object for writing traces from the additional components of our testing framework
class MyClass:
def logSomething(self):
log.info("Something to log")
...
But what I got is the duplication of the lines of the log in the following way:
2016-05-03 15:15:37,750 INFO Test final outcome BLOCKED
INFO:pysys:Test final outcome BLOCKED
2016-05-03 15:15:37,750 INFO
INFO:pysys:
2016-05-03 15:15:37,851 CRIT
CRIT:pysys:
2016-05-03 15:15:37,851 CRIT Test duration: 41.06 (secs)
CRIT:pysys:Test duration: 41.06 (secs)
I understand that I'm doing something not properly, so any feedback about that could be appreciated.
Thanks.
Aucun commentaire:
Enregistrer un commentaire