mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-28 03:45:09 +00:00
feat(log): record each HTTP attempt in the debug log with debug_requests
This commit is contained in:
@@ -40,5 +40,5 @@ Where the file lives, how unshackle discovers it, and how to edit it:
|
||||
| [External API keys](misc.md#external-api-keys) | `omdb_api_key`, `tmdb_api_key`, `tvdb_api_key`, `tvdb_pin`, `tvdb_order`, `simkl_client_id`, `metadata_providers`, `anilist_title_language`, `disable_metadata`, `decrypt_labs_api_key`, `ipinfo_api_key` |
|
||||
| [Caching & updates](misc.md#caching-updates) | `title_cache_enabled`, `title_cache_time`, `title_cache_max_retention`, `update_checks`, `update_check_interval` |
|
||||
| [Appearance](misc.md#appearance) | `theme`, `wide_output` |
|
||||
| [Logging, privacy & debug](misc.md#logging-privacy-debug) | `redact_paths`, `debug`, `debug_keys`, `debug_requests`, `set_terminal_bg` |
|
||||
| [Logging, privacy & debug](misc.md#logging-privacy-debug) | `redact_paths`, `debug`, `debug_keys`, `debug_requests`, `debug_requests_body_limit`, `set_terminal_bg` |
|
||||
| [Deprecated & removed](misc.md#deprecated-removed-keys) | `curl_impersonate`, `downloader`, `scene_naming` |
|
||||
|
||||
@@ -157,7 +157,8 @@ calls.
|
||||
| `redact_paths` | bool | `true` | Mask install-root / venv / home prefixes in logged paths (`<unshackle>`, `<venv>`, `~`). Set `false` to show full paths. |
|
||||
| `debug` | bool | `false` | Global debug mode. |
|
||||
| `debug_keys` | bool | `false` | Log decryption keys. |
|
||||
| `debug_requests` | bool | `false` | Log HTTP requests. |
|
||||
| `debug_requests` | bool | `false` | The one switch that writes an `http_request` entry for each HTTP attempt to the JSON debug log, with the text response body as received; `-d` and `debug` alone write none. With `-d` it also keeps the HTTP library logs in the console. See [Debugging HTTP traffic](../../guide/troubleshooting.md#debug-requests). |
|
||||
| `debug_requests_body_limit` | int | `0` | The maximum number of bytes of a response body in an `http_request` entry. `0` or unset records the full body. unshackle cuts a longer body and records its full size. |
|
||||
| `set_terminal_bg` | bool | `false` | Append the theme's background colour to output styling. |
|
||||
|
||||
!!! note "Effect of `set_terminal_bg`"
|
||||
@@ -174,6 +175,12 @@ calls.
|
||||
`debug_keys` affects **only** content-encryption keys (the `content_key`/`key` fields).
|
||||
Passwords, tokens, cookies, and session tokens are **always** redacted regardless of this
|
||||
setting, and KIDs, content key counts, and other metadata are always logged either way.
|
||||
The `http_request` entries of `debug_requests` are the exception.
|
||||
|
||||
!!! danger "`debug_requests` writes secrets"
|
||||
With `debug_requests` on, the JSONL file holds tokens, passwords, cookies, content keys and account data
|
||||
as the servers sent them. unshackle masks only the local folder prefixes in these entries. Keep the file on
|
||||
your computer. Never attach it to a report.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user