fgreg closed pull request #8: SDAP-65 ningesterpy output not printing in docker logs URL: https://github.com/apache/incubator-sdap-ningesterpy/pull/8
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/sdap/ningesterpy.py b/sdap/ningesterpy.py index ff143ed..e036952 100644 --- a/sdap/ningesterpy.py +++ b/sdap/ningesterpy.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import logging +import sys import uuid from flask import Flask, request, jsonify, Response @@ -25,8 +26,9 @@ from werkzeug.exceptions import default_exceptions from sdap.processors.processorchain import ProcessorChain, ProcessorNotFound, MissingProcessorArguments + logging.basicConfig(format="%(asctime)s %(levelname)s %(process)d --- [%(name)s.%(funcName)s:%(lineno)d] %(message)s", - datefmt="%Y-%m-%d %H:%M:%S") + datefmt="%Y-%m-%d %H:%M:%S", stream=sys.stdout) applog = logging.getLogger(__name__) applog.setLevel(logging.INFO) @@ -81,6 +83,11 @@ def run_processor_chain(): return Response(result, mimetype='application/octet-stream') +@app.route('/healthcheck', methods=['GET'], ) +def health_check(): + return '' + + def handle_error(e): error_id = uuid.uuid4() ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services