Skip to content

Commit

Permalink
added log class
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio14 committed Nov 3, 2015
1 parent b47daa2 commit 26c70b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iotronic/wamp/rpcwampserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RPCWampManager(ApplicationSession):

def __init__(self, config=None):
ApplicationSession.__init__(self, config)
LOG.info("component created")
LOG.info("RPC wamp manager created")

'''
#unused methods
Expand All @@ -32,13 +32,13 @@ def onDisconnect(self):

@inlineCallbacks
def onJoin(self, details):
LOG.info('session ready')
LOG.info('RPC Wamp Session ready')
import iotronic.wamp.functions as fun
try:
yield self.register(fun.test, u'stack4things.conductor.rpc.test')
yield self.register(fun.registration, u'stack4things.conductor.rpc.registration')

LOG.info("procedure registered")
LOG.info("Procedures registered")
except Exception as e:
print("could not register procedure: {0}".format(e))

Expand All @@ -62,7 +62,7 @@ class RPC_Wamp_Server:
def __init__(self,ip,port,realm):
server = RPCWampServer(ip,port,realm)
server.start()
multi = multiprocessing.Process(target=reactor.run, name='reactor',args=())
multi = multiprocessing.Process(target=reactor.run,args=())
multi.start()


0 comments on commit 26c70b4

Please sign in to comment.