ukhas / habitat

Next Generation High Altitude Balloon Tracking
http://habitat.habhub.org/
GNU General Public License v3.0
41 stars 14 forks source link

Parser doc selection logging #306

Closed danielrichman closed 11 years ago

danielrichman commented 11 years ago

Two changes:

I noticed that if a parse succeeds you can see the config document used in the log via the DEBUG habitat.parser MainThread: Parsed data: { line, but it's not shown for failed parses. The second commit adds that.

I wanted to quickly check the logging output so looked for something that tested _get_config without a provided config - couldn't find it, so added it. It was tested already (indirectly) by test_parse, but I figured since some of the other tests mock _get_config out, why not