# libtmux._internal.log_context._redact_carrier_string

- **Module:** libtmux._internal.log_context
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/_internal/log_context.py#L602
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-log_context-_redact_carrier_string/

```
libtmux._internal.log_context._redact_carrier_string(
    raw: str, depth: int
) -> str
```

Redact a tmux command string when at least one inner token changes.

## Parameters

- `raw` (`str`)
- `depth` (`int`)
