From 6030f4055a5155b95de7cf67683186a6caf54bc8 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 12 May 2022 10:18:13 +0200 Subject: [PATCH] Pull request #12: Image prediction service overhaul xref and empty result fix fix Merge in RR/image-prediction from image_prediction_service_overhaul_xref_and_empty_result_fix_fix to master Squashed commit of the following: commit 1dfa95b3e2875d58d19639a2110ba50a46e949aa Merge: c9cad0e eb050a5 Author: Matthias Bisping Date: Thu May 12 10:13:40 2022 +0200 Merge branch 'master' of ssh://git.iqser.com:2222/rr/image-prediction into image_prediction_service_overhaul_xref_and_empty_result_fix_fix commit c9cad0eda55c32e4cb0b601679e39d4962b4b485 Author: Matthias Bisping Date: Mon Apr 25 17:06:59 2022 +0200 logging setup changed commit 89e33618fe6b8e30a376d619395db6a6c664e218 Author: Matthias Bisping Date: Mon Apr 25 17:01:44 2022 +0200 logging setup changed commit 7312e57d1127b081bfdc6e96311e8348d3f8110d Author: Matthias Bisping Date: Mon Apr 25 16:45:12 2022 +0200 logging setup changed commit 955e353d74f414ee2d57b234bdf84d32817d14bf Author: Matthias Bisping Date: Mon Apr 25 16:37:52 2022 +0200 fixed assignment --- src/serve.py | 2 ++ test/integration_tests/actual_server_test.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/serve.py b/src/serve.py index 3b9c9cf..37a7906 100644 --- a/src/serve.py +++ b/src/serve.py @@ -26,6 +26,8 @@ def main(): if __name__ == "__main__": logging.basicConfig(level=CONFIG.service.logging_level) + logging.getLogger("PIL").setLevel(logging.ERROR) + logging.getLogger("h5py").setLevel(logging.ERROR) logging.getLogger("pillow").setLevel(logging.ERROR) logger = get_logger() diff --git a/test/integration_tests/actual_server_test.py b/test/integration_tests/actual_server_test.py index 3e42e40..d19a6b6 100644 --- a/test/integration_tests/actual_server_test.py +++ b/test/integration_tests/actual_server_test.py @@ -49,7 +49,7 @@ def server(server_type): @pytest.fixture -def host_and_port(host, port, server): +def host_and_port(host, port): return {"host": host, "port": port}