Return True if the file should be redacted, otherwise False.
(filename: Union[pathlib.Path, str])
| 792 | |
| 793 | |
| 794 | def redactable_file(filename: Union[pathlib.Path, str]) -> bool: |
| 795 | """ |
| 796 | Return True if the file should be redacted, otherwise False. |
| 797 | """ |
| 798 | filename = pathlib.Path(filename) |
| 799 | if filename.name.startswith(("pprof", "expvars.json")): |
| 800 | return False |
| 801 | return filename.stem != "sync_gateway" |
| 802 | |
| 803 | |
| 804 | def get_open_fn(path: Union[pathlib.Path, str]) -> Callable: |