Author: damoxc

Revision: 5663

Log:
        add a log message stating which json encoder is being using

Diff:
Modified: trunk/deluge/common.py
===================================================================
--- trunk/deluge/common.py      2009-08-12 07:22:13 UTC (rev 5662)
+++ trunk/deluge/common.py      2009-08-12 07:24:10 UTC (rev 5663)
@@ -46,10 +46,12 @@
     import json
 except ImportError:
     import simplejson as json
+    log.info('Using simplejson for json converting')
 
 # Do a little hack here just in case the user has json-py installed since it
 # has a different api
 if not hasattr(json, "dumps"):
+    log.info('Using python-json for json converting')
     json.dumps = json.write
     json.loads = json.read
 
@@ -61,6 +63,8 @@
 
     json.dump = dump
     json.load = load
+else:
+    log.info('Using simplejson for json converting')
 
 import pkg_resources
 import xdg, xdg.BaseDirectory



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to