Update #1142 logging output handling (#1153)

* Update logging output to debug rather than standard log
This commit is contained in:
abraunegg 2020-11-20 06:33:47 +11:00 committed by GitHub
parent 8c23efc6c5
commit ac4da2e2ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -769,18 +769,18 @@ int main(string[] args)
// Do we need to configure specific --upload-only options? // Do we need to configure specific --upload-only options?
if (cfg.getValueBool("upload_only")) { if (cfg.getValueBool("upload_only")) {
// --upload-only was passed in or configured // --upload-only was passed in or configured
log.log("Configuring uploadOnly flag to TRUE as --upload-only passed in or configured"); log.vdebug("Configuring uploadOnly flag to TRUE as --upload-only passed in or configured");
sync.setUploadOnly(); sync.setUploadOnly();
// was --no-remote-delete passed in or configured // was --no-remote-delete passed in or configured
if (cfg.getValueBool("no_remote_delete")) { if (cfg.getValueBool("no_remote_delete")) {
// Configure the noRemoteDelete flag // Configure the noRemoteDelete flag
log.log("Configuring noRemoteDelete flag to TRUE as --no-remote-delete passed in or configured"); log.vdebug("Configuring noRemoteDelete flag to TRUE as --no-remote-delete passed in or configured");
sync.setNoRemoteDelete(); sync.setNoRemoteDelete();
} }
// was --remove-source-files passed in or configured // was --remove-source-files passed in or configured
if (cfg.getValueBool("remove_source_files")) { if (cfg.getValueBool("remove_source_files")) {
// Configure the localDeleteAfterUpload flag // Configure the localDeleteAfterUpload flag
log.log("Configuring localDeleteAfterUpload flag to TRUE as --remove-source-files passed in or configured"); log.vdebug("Configuring localDeleteAfterUpload flag to TRUE as --remove-source-files passed in or configured");
sync.setLocalDeleteAfterUpload(); sync.setLocalDeleteAfterUpload();
} }
} }