mirror of
https://github.com/rclone/rclone.git
synced 2025-06-24 18:31:24 +08:00
fs: Add --dump flag, introduce --dump requests, responses and remove --dump-auth, --dump-filters
Now --dump-flag is written as --dump flag. This is a comma separated list which can contain * headers - HTTP headers as before * bodies - HTTP bodies as before * requests - HTTP request bodies * responses - HTTP response bodies * auth - HTTP auth * filters - Filter rexeps Leave --dump-headers and --dump-bodies for the time being but remove the other --dump-* flags as they aren't used very often.
This commit is contained in:
@ -888,14 +888,20 @@ here which are used for testing. These start with remote name eg
|
||||
|
||||
Write CPU profile to file. This can be analysed with `go tool pprof`.
|
||||
|
||||
### --dump-auth ###
|
||||
#### --dump flag,flag,flag ####
|
||||
|
||||
Dump HTTP headers - will contain sensitive info such as
|
||||
`Authorization:` headers - use `--dump-headers` to dump without
|
||||
`Authorization:` headers. Can be very verbose. Useful for debugging
|
||||
The `--dump` flag takes a comma separated list of flags to dump info
|
||||
about. These are:
|
||||
|
||||
#### --dump headers ####
|
||||
|
||||
Dump HTTP headers with `Authorization:` lines removed. May still
|
||||
contain sensitive info. Can be very verbose. Useful for debugging
|
||||
only.
|
||||
|
||||
### --dump-bodies ###
|
||||
Use `--dump auth` if you do want the `Authorization:` headers.
|
||||
|
||||
#### --dump bodies ####
|
||||
|
||||
Dump HTTP headers and bodies - may contain sensitive info. Can be
|
||||
very verbose. Useful for debugging only.
|
||||
@ -903,19 +909,28 @@ very verbose. Useful for debugging only.
|
||||
Note that the bodies are buffered in memory so don't use this for
|
||||
enormous files.
|
||||
|
||||
### --dump-filters ###
|
||||
#### --dump requests ####
|
||||
|
||||
Like `--dump bodies` but dumps the request bodies and the response
|
||||
headers. Useful for debugging download problems.
|
||||
|
||||
#### --dump responses ####
|
||||
|
||||
Like `--dump bodies` but dumps the response bodies and the request
|
||||
headers. Useful for debugging upload problems.
|
||||
|
||||
#### --dump auth ####
|
||||
|
||||
Dump HTTP headers - will contain sensitive info such as
|
||||
`Authorization:` headers - use `--dump headers` to dump without
|
||||
`Authorization:` headers. Can be very verbose. Useful for debugging
|
||||
only.
|
||||
|
||||
#### --dump filters ####
|
||||
|
||||
Dump the filters to the output. Useful to see exactly what include
|
||||
and exclude options are filtering on.
|
||||
|
||||
### --dump-headers ###
|
||||
|
||||
Dump HTTP headers with `Authorization:` lines removed. May still
|
||||
contain sensitive info. Can be very verbose. Useful for debugging
|
||||
only.
|
||||
|
||||
Use `--dump-auth` if you do want the `Authorization:` headers.
|
||||
|
||||
### --memprofile=FILE ###
|
||||
|
||||
Write memory profile to file. This can be analysed with `go tool pprof`.
|
||||
@ -969,7 +984,7 @@ For the filtering options
|
||||
* `--max-size`
|
||||
* `--min-age`
|
||||
* `--max-age`
|
||||
* `--dump-filters`
|
||||
* `--dump filters`
|
||||
|
||||
See the [filtering section](/filtering/).
|
||||
|
||||
|
@ -400,7 +400,7 @@ these are now excluded from the sync.
|
||||
|
||||
Always test first with `--dry-run` and `-v` before using this flag.
|
||||
|
||||
### `--dump-filters` - dump the filters to the output ###
|
||||
### `--dump filters` - dump the filters to the output ###
|
||||
|
||||
This dumps the defined filters to the output as regular expressions.
|
||||
|
||||
|
Reference in New Issue
Block a user