beremiz
Clone
Summary
Browse
Changes
Graph
fix non-working logging at first connection to PLC after Beremiz launch
2016-09-09, Andrey Skvortsov
70fc5688741e
fix non-working logging at first connection to PLC after Beremiz launch
At the same time this helps to avoid exception described in 1484:d5efbb20927e.
from pyjs.jsonrpc import JSONRPCServiceBase
class JSONRPCService(JSONRPCServiceBase):
def serve(self):
return self.process(request.body.read())
def __call__(self,func):
self.methods[func.__name__]=func
return func