Don't print progress when -quiet is specified

GitOrigin-RevId: de4cedd537717df4b68e18c2027f3ecad218cbbc
This commit is contained in:
Dietrich Epp 2021-03-19 14:26:37 -04:00
parent a85d31c36a
commit d74cfbf9b1
1 changed files with 3 additions and 1 deletions

4
sync.c
View File

@ -336,7 +336,9 @@ static int command_main(char *localPath, char *remotePath, int mode) {
for (i = 0; i < n; i++) {
file = &array[i];
p2cstr(name, file->name);
fprintf(stderr, "## %s: %s\n", kActionName[file->action], name);
if (gLogLevel >= kLogInfo) {
fprintf(stderr, "## %s: %s\n", kActionName[file->action], name);
}
r = sync_file(&array[i], func, srcVol, srcDir, destVol, destDir,
tempVol, tempDir);
if (r != 0) {