upd/hyp_scorer/logging: set level logginf for werkzeug&timing level up
@@ -11,6 +11,7 @@ sentry_sdk.init(os.getenv("SENTRY_DSN"))
logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO)
logger = logging.getLogger(__name__)
+logging.getLogger("werkzeug").setLevel("WARNING")
app = Flask(__name__)
@@ -64,7 +65,7 @@ def batch_respond():
sentry_sdk.capture_exception(e)
logger.exception(e)
- logging.info(f"hypothesis_scorer exec time {time.time() - st_time}")
+ logging.warning(f"hypothesis_scorer exec time {time.time() - st_time}")
return jsonify([{"batch": responses}])
