[worker] Reduce JSON debug output to single line.

Logstash multi-line filter causes us problem. Let's just make the
JSON a single line.

Change-Id: I2587f96048c7e93dba8e3b4d705353249501567d
This commit is contained in:
David Shrewsbury
2013-06-19 21:19:36 +00:00
parent 14e705b492
commit d7bc99cdec

View File

@@ -43,7 +43,7 @@ def handler(worker, job):
if LBaaSController.OBJ_STORE_TOKEN_FIELD in copy: if LBaaSController.OBJ_STORE_TOKEN_FIELD in copy:
copy[LBaaSController.OBJ_STORE_TOKEN_FIELD] = "*****" copy[LBaaSController.OBJ_STORE_TOKEN_FIELD] = "*****"
logger.debug("Received JSON message: %s" % json.dumps(copy, indent=4)) logger.debug("Received JSON message: %s" % json.dumps(copy))
controller = LBaaSController(logger, driver, job.data) controller = LBaaSController(logger, driver, job.data)
response = controller.run() response = controller.run()
@@ -53,7 +53,7 @@ def handler(worker, job):
if LBaaSController.OBJ_STORE_TOKEN_FIELD in copy: if LBaaSController.OBJ_STORE_TOKEN_FIELD in copy:
copy[LBaaSController.OBJ_STORE_TOKEN_FIELD] = "*****" copy[LBaaSController.OBJ_STORE_TOKEN_FIELD] = "*****"
logger.debug("Return JSON message: %s" % json.dumps(copy, indent=4)) logger.debug("Return JSON message: %s" % json.dumps(copy))
return copy return copy