X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=apache%2Fplc.wsgi;h=b16b7f2792a219e19ff2cef3e7f0094457f414ce;hb=ae8b10f8363f7a1df02e77cbd820904c4ded10b8;hp=40a13277f8a40f1c85757db8fc9943580e431bcc;hpb=79e3509b31651755422ef109bd3895bb06d02a54;p=plcapi.git diff --git a/apache/plc.wsgi b/apache/plc.wsgi index 40a1327..b16b7f2 100644 --- a/apache/plc.wsgi +++ b/apache/plc.wsgi @@ -23,6 +23,7 @@ def application(environ, start_response):

PLCAPI WSGI XML-RPC/SOAP Interface

Please use XML-RPC or SOAP to access the PLCAPI.

+

At the very least you need to use a POST method.

""" else: @@ -37,6 +38,14 @@ def application(environ, start_response): ip = environ.get('REMOTE_ADDR') port = environ.get('REMOTE_PORT') output = api.handle((ip,port), environ.get('wsgi.input').read()) +# uncomment for debug +# try: +# with open("/tmp/dbgplc.log", "a") as f: +# print(f"{ip=} {port=}\n" +# f"{output=}", +# file=f) +# except Exception as exc: +# pass # Shut down database connection, otherwise up to MaxClients DB # connections will remain open. api.db.close()