ac32034910
update log server to prevent delays or missed information
15 lines
411 B
Python
15 lines
411 B
Python
from flask import Flask
|
|
from flask_restful import Api
|
|
from .log_resource import LogResource
|
|
#from .restart_resource import RestartResource
|
|
import logging
|
|
|
|
app = Flask(__name__)
|
|
|
|
def init():
|
|
log = logging.getLogger('werkzeug')
|
|
log.setLevel(logging.ERROR)
|
|
api = Api(app)
|
|
api.add_resource(LogResource, '/log/<string:path>/<string:retrieval_key>')
|
|
#api.add_resource(RestartResource, '/restart')
|