Housekeeping and migrated prints to logging
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
import os
|
||||
import json
|
||||
import logging
|
||||
|
||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
|
||||
from .dispatcher import dispatchRequest
|
||||
from .createresponse import buildResponse
|
||||
from core.runtime.outputs import buildOutput
|
||||
from core.runtime.resolver import resolveItem
|
||||
from plugins.rmass.listeners import synapselistener
|
||||
from plugins.rmass.operations import rmassmessagepush
|
||||
from core.execution.action import buildAction
|
||||
from core.server.createlistener import buildListener
|
||||
from plugins.rmass.actions import pingsynapse
|
||||
#from plugins.rmass.actions import pingsynapse
|
||||
|
||||
port = int(os.environ.get("SERVER_PORT", 19001))
|
||||
|
||||
@@ -104,7 +102,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
def startServer():
|
||||
server = HTTPServer(("0.0.0.0", port), RequestHandler)
|
||||
|
||||
print(f"Server listening on port {port}")
|
||||
logging.info(f"Server listening on port {port}")
|
||||
#outputs = {}
|
||||
#outputs, response = buildAction(pingsynapse, outputs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user