ajout logging dans pyramidsvc.py
This commit is contained in:
@@ -25,6 +25,7 @@ class PyWebService(win32serviceutil.ServiceFramework):
|
||||
def SvcDoRun(self):
|
||||
from cherrypy import wsgiserver
|
||||
from pyramid.paster import get_app
|
||||
from pyramid.paster import setup_logging
|
||||
import os, sys
|
||||
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
@@ -32,6 +33,8 @@ class PyWebService(win32serviceutil.ServiceFramework):
|
||||
os.chdir(path)
|
||||
|
||||
app = get_app(CONFIG_FILE)
|
||||
setup_logging(CONFIG_FILE)
|
||||
|
||||
|
||||
self.server = wsgiserver.CherryPyWSGIServer(
|
||||
('0.0.0.0', PORT_TO_BIND), app,
|
||||
|
||||
Reference in New Issue
Block a user