From c8e0ad5fe5698954e9972cd19fa5afb2bf7248bc Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Wed, 5 Jun 2024 12:12:28 -0500 Subject: [PATCH] remove print statements --- app.py | 1 - src/blueprints/guards.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/app.py b/app.py index 97ffdba..e863d84 100644 --- a/app.py +++ b/app.py @@ -38,7 +38,6 @@ def create_app(): guardrails_log_level = os.environ.get("GUARDRAILS_LOG_LEVEL", "INFO") configure_logging(log_level=guardrails_log_level) - print("otel_is_disabled: ", otel_is_disabled()) if not otel_is_disabled(): FlaskInstrumentor().instrument_app(app) initialize() diff --git a/src/blueprints/guards.py b/src/blueprints/guards.py index 2daa7c3..5cdf153 100644 --- a/src/blueprints/guards.py +++ b/src/blueprints/guards.py @@ -278,7 +278,6 @@ def validate_streamer(guard_iter): next_result = result # next_validation_output = validation_output fragment = json.dumps(validation_output.to_response()) - print("yielding fragment") yield f"{fragment}\n" final_validation_output: ValidationOutput = ValidationOutput( @@ -297,7 +296,6 @@ def validate_streamer(guard_iter): # result=next_result # ) final_output_json = json.dumps(final_validation_output.to_response()) - print("Yielding final output.") yield f"{final_output_json}\n" return Response(