Skip to content

Commit 36b7a27

Browse files
authored
Do not use print function. User logger instead
Use logger instead of print function. This allow developers using the library to silenc undesired output
1 parent 7faf9ce commit 36b7a27

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/sagemaker/processing.py

Lines changed: 5 additions & 6 deletions
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)