nailgun wsgi logging to apache
This commit is contained in:
parent
353f656d93
commit
a9597626b4
@ -260,7 +260,7 @@ class ClusterChangesHandler(JSONHandler):
|
|||||||
allowed_statuses = ("discover", "ready")
|
allowed_statuses = ("discover", "ready")
|
||||||
for node in cluster.nodes:
|
for node in cluster.nodes:
|
||||||
if node.status not in allowed_statuses:
|
if node.status not in allowed_statuses:
|
||||||
raise Exception(
|
raise web.badrequest(
|
||||||
"Node %s (%s) status:%s not in %s" % (
|
"Node %s (%s) status:%s not in %s" % (
|
||||||
node.mac,
|
node.mac,
|
||||||
node.ip,
|
node.ip,
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import logging
|
||||||
|
|
||||||
import web
|
import web
|
||||||
|
|
||||||
curdir = os.path.dirname(__file__)
|
curdir = os.path.dirname(__file__)
|
||||||
sys.path.insert(0, curdir)
|
sys.path.insert(0, curdir)
|
||||||
|
|
||||||
|
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||||
|
|
||||||
from api.handlers import check_client_content_type
|
from api.handlers import check_client_content_type
|
||||||
from db import load_db_driver
|
from db import load_db_driver
|
||||||
from urls import urls
|
from urls import urls
|
||||||
|
Loading…
Reference in New Issue
Block a user