Skip to content

Commit 76d9c5a

Browse files
authored
fix: Do not use print function. User logger instead (#3591)
Use logger instead of print function. This allow developers using the library to silenc undesired output
1 parent 27ebde6 commit 76d9c5a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/sagemaker/processing.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
data pre-processing, post-processing, feature engineering, data validation, and model evaluation,
1717
and interpretation on Amazon SageMaker.
1818
"""
19-
from __future__ import print_function, absolute_import
19+
from __future__ import absolute_import
2020

2121
import os
2222
import pathlib
@@ -840,11 +840,10 @@ def start_new(cls, processor, inputs, outputs, experiment_config):
840840
"""
841841
process_args = cls._get_process_args(processor, inputs, outputs, experiment_config)
842842

843-
# Print the job name and the user's inputs and outputs as lists of dictionaries.
844-
print()
845-
print("Job Name: ", process_args["job_name"])
846-
print("Inputs: ", process_args["inputs"])
847-
print("Outputs: ", process_args["output_config"]["Outputs"])
843+
# Log the job name and the user's inputs and outputs as lists of dictionaries.
844+
logger.debug("Job Name: %s", process_args["job_name"])
845+
logger.debug("Inputs: %s", process_args["inputs"])
846+
logger.debug("Outputs: %s", process_args["output_config"]["Outputs"])
848847

849848
# Call sagemaker_session.process using the arguments dictionary.
850849
processor.sagemaker_session.process(**process_args)

0 commit comments

Comments
 (0)