Disable output / silent option?
See original GitHub issueWould it be possible to have an option to disable any output / info messages when running the Profiler? I’ve had a look at the sources, and it seems simple print
s are used, e.g. for:
Finding the Null values in the columns... (with 9 processes)
...
Maybe there could be a ‘silent=True’ option in the Profiler base class, or something similar? Having this output in the (standard) log(s) would still be useful, but as it is it gets in the way of my ‘normal’ command-line output, unless I apply some dodgy workarounds…
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
quiet or --silent option to suppress console output · Issue #222 ...
netlify deploy produces output which fails CI builds. Can't see a way to supsess it, redirect won't help, exit status would be 0...
Read more >Silencing the Output of a Bash Command | Baeldung on Linux
To silence the output of a command, we redirect either stdout or stderr — or both — to /dev/null. To select which stream...
Read more >Azure CLI: Suppress Output For Silent Commands / Quiet Mode
In these cases, it would be really helpful if there were a way to suppress Azure CLI command output so the command is...
Read more >Automake Silent Rules (automake) - GNU.org
Passing --enable-silent-rules to configure will cause build rules to be less verbose; the option --disable-silent-rules will cause normal verbose output. At ...
Read more >curl hide progress bar output on Linux/Unix shell scripts
The procedure to hide curl progress bar is to pass the -s or --silent option to the curl command: Open the terminal application...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ChrisWallace2020 thanks, much appreciated! I just tried out the latest version from git, and it works exactly as advertised for me, once I switchto logging.WARNING.
Actually, there was one warning still intact:
But I can turn that off easily by disabling the data_labeler in the profile options. It’s probably a good idea to do that explicitly anyway – even if though I deliberately did not install tensorflow, so I did not expect this to work. And since it’s a different sort of warning it probably makes sense to leave that one in.
Thanks again!
@makkus the 2 PRs above (#357, #368) should resolve the issue.
The
prints
were replaced withlogging.info
so that the effective level may be set high enough to filter them out if you choose to do so. This can be set either throughlogging
like normal or you can use the functionset_verbosity
we’ve written indp_logging.py
that takes in thelogging
level (logging.DEBUG
,logging.INFO
,logging.WARNING
etc). DataProfiler-specific logging will output tostdout
(if left verbose).I hope this addresses your issue, let me know if there is any further feedback. If this addresses your initial issue feel free to close this out, please and thank you.