[909007] Replace print statements with python logging API