To help avoid costly logging in cloud platforms, are there any available cargo tools that will return an error code if any println!
statements are found in your non-test code?
For instance, in python you can use flake8 or noprint to detect in the AST print
statements.
I'd use this just before running any tests in my CI and fail the build if someone committed println! statements.