From 6426df9ece450ae15dce286376f8572b4621c439 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 5 Oct 2012 10:20:34 -0500 Subject: [PATCH] Weather: dump json output in a prettier format --- modules/Weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Weather.py b/modules/Weather.py index a29f26c..da4ad41 100644 --- a/modules/Weather.py +++ b/modules/Weather.py @@ -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