"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
config: enable verbose logging by the --verbose argument - #5594
Ivan Andreevffa1b1a258fd
diff --git a/fs/config.go b/fs/config.goindex 3a4de7717..5a4e44c71 100644--- a/fs/config.go+++ b/fs/config.go@@ -4,6 +4,7 @@ import ("context""net""os"+ "strconv""strings""time"@@ -179,6 +180,11 @@ func NewConfig() *ConfigInfo {if arg == "--log-level=DEBUG" || (arg == "--log-level" && len(os.Args) > argIndex+1 && os.Args[argIndex+1] == "DEBUG") {c.LogLevel = LogLevelDebug}+ if strings.HasPrefix(arg, "--verbose=") {+ if level, err := strconv.Atoi(arg[10:]); err == nil && level >= 2 {+ c.LogLevel = LogLevelDebug+ }+ }}envValue, found := os.LookupEnv("RCLONE_LOG_LEVEL")if found && envValue == "DEBUG" {