refactor(libs): Remove print statements (#9718)

Remove the debug print statements in the logging module.

Every time an app process is started, it prints:
```
Console logging enabled
```
or similar, depending on the logging config.
This commit is contained in:
Reinier van der Leer
2025-03-31 12:46:06 +02:00
committed by GitHub
parent abcacacc06
commit babcb41f43

View File

@@ -99,7 +99,6 @@ def configure_logging(force_cloud_logging: bool = False) -> None:
cloud_handler.setLevel(config.level)
cloud_handler.setFormatter(StructuredLoggingFormatter())
log_handlers.append(cloud_handler)
print("Cloud logging enabled")
else:
# Console output handlers
stdout = logging.StreamHandler(stream=sys.stdout)
@@ -118,7 +117,6 @@ def configure_logging(force_cloud_logging: bool = False) -> None:
stderr.setFormatter(AGPTFormatter(SIMPLE_LOG_FORMAT))
log_handlers += [stdout, stderr]
print("Console logging enabled")
# File logging setup
if config.enable_file_logging:
@@ -156,7 +154,6 @@ def configure_logging(force_cloud_logging: bool = False) -> None:
error_log_handler.setLevel(logging.ERROR)
error_log_handler.setFormatter(AGPTFormatter(DEBUG_LOG_FORMAT, no_color=True))
log_handlers.append(error_log_handler)
print("File logging enabled")
# Configure the root logger
logging.basicConfig(