I use a function call by API and provided by another party and no way to change it. for example, i use:
import api
...
api.login()
data=api.getData() #retry itself until success
The function will retry itself and print status every 1 sec until success, normally run at least 30 sec. I not want too many print out that I hard to troubleshoot. Is it possible to hidden printout under "getData()"?