Using ujson or simplejson in worker if available.
This commit is contained in:
parent
8dba9e2e8b
commit
8369eeafbb
@ -17,7 +17,6 @@
|
||||
# to set TENANT_ID and URL to point to your StackTach web server.
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import kombu
|
||||
import kombu.entity
|
||||
import kombu.mixins
|
||||
@ -25,6 +24,14 @@ import logging
|
||||
import sys
|
||||
import time
|
||||
|
||||
try:
|
||||
import ujson as json
|
||||
except ImportError:
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
from pympler.process import ProcessMemoryInfo
|
||||
|
||||
from stacktach import db, views
|
||||
|
Loading…
x
Reference in New Issue
Block a user