Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

rc: add help to show how to set log level with options/set

Nick Craig-Wood6e153781a7bd
diff --git a/fs/rc/config.go b/fs/rc/config.go
index 0288749a1..741a7c55c 100644
--- a/fs/rc/config.go
+++ b/fs/rc/config.go
@@ -74,6 +74,20 @@ Repeated as often as required.
Only supply the options you wish to change. If an option is unknown
it will be silently ignored. Not all options will have an effect when
changed like this.
+
+For example:
+
+This sets DEBUG level logs (-vv)
+
+ rclone rc options/set --json '{"main": {"LogLevel": 8}}'
+
+And this sets INFO level logs (-v)
+
+ rclone rc options/set --json '{"main": {"LogLevel": 7}}'
+
+And this sets NOTICE level logs (normal without -v)
+
+ rclone rc options/set --json '{"main": {"LogLevel": 6}}'
`,
})
}