Weather: dump json output in a prettier format

This commit is contained in:
Brian S. Stephan 2012-10-05 10:20:34 -05:00
parent 41c1a46bb2
commit 6426df9ece
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class Weather(Module):
# condition data is loaded. the rest of this is obviously specific to
# http://www.wunderground.com/weather/api/d/docs?d=data/conditions
self.log.debug(condition_data)
self.log.debug(json.dumps(condition_data, sort_keys=True, indent=4))
try:
# just see if we have current_observation data