djnugent / SmartCamera

Use image processing to perform visual navigation for Ardupilot
32 stars 26 forks source link

Logging to console #2

Open djnugent opened 9 years ago

djnugent commented 9 years ago

The logger prints to console even though there is only a FileHandler set up. This makes the console become busy for debugging. Logging is disabled while debugging.

ghost commented 9 years ago

Hi Daniel,

I forked your code and got it to run on SITL. And I implemented a stereo vision system using a similar kind of HUD that you used in precision land, I thought that was brilliant btw! Oh and I think I know about the logger problem, cause I faced similar problems, and then I stopped using sc_logger and wrote my own logger module instead: https://github.com/onebsv1/STOBA/blob/master/a_logger.py

I think setting the logger.propagate to False disabled this kind of behavior.

djnugent commented 9 years ago

Hey thanks for the feedback. Glad to see someone using it. I'll look into the logger.propagate. Thanks!