usc-isi-i2 / dsbox-ta2

The DSBox TA2 component
MIT License
11 stars 6 forks source link

Add logging and debugging output #44

Closed kyao closed 6 years ago

kyao commented 6 years ago

Use python's logging module to log the behavior our ta2 system and ta1 primitives.

Things to log include:

Debugging output:

proska commented 6 years ago

@RqS I can see that you have added the logging for each step execution. The problem is we run multiple evaluations in parallel, hence the output is really cluttered. Is it possible to pack the logs of each evaluation into one log message? I am not if it is a reasonable thing to try, so just go with any solution that you find fit.

szeke commented 6 years ago

How about using some string in the output to identify the process so that the logs can be parceled out by using grep

RqS commented 6 years ago

@proska I have not added any logging, what you have seen is probably some print statements in profiler. But what you said is a problem, I also noticed when I am writing logging, will try to find some solution.

kyao commented 6 years ago

The logging output is from the d3m primitive loading module. It prints a couple of lines for each primitive it loads.

I added an logger to controller.py and that caused d3m logs to to be printed.

RqS commented 6 years ago

Merged