Configures the logging level and adds FilterDiscoveryLogging. Args: level: Logging verbosity.
(level: int)
| 36 | |
| 37 | |
| 38 | def configure_logging(level: int): |
| 39 | """Configures the logging level and adds FilterDiscoveryLogging. |
| 40 | |
| 41 | Args: |
| 42 | level: Logging verbosity. |
| 43 | """ |
| 44 | # Utility to configure logging. |
| 45 | logging.set_verbosity(level) |
| 46 | logging.get_absl_handler().addFilter(FilterDiscoveryLogging()) |
| 47 | |
| 48 | |
| 49 | def handle_popen(proc: subprocess.Popen): |
no test coverage detected