-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
casync-http: Log downloaded chunks with debug level (was info) #191
casync-http: Log downloaded chunks with debug level (was info) #191
Conversation
src/casync-http.c
Outdated
@@ -315,7 +315,7 @@ static int acquire_file(CaRemote *rr, | |||
} | |||
|
|||
if (arg_verbose) | |||
log_info("Acquiring %s...", url); | |||
log_debug("Acquiring %s...", url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only changed the log level, but I also wondered if we should remove arg_verbose
here. And more generally, how is verbose supposed to play along log levels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, log_debug stuff should be unaffected by arg_verbose. Hence, it's fine to downgrade this, but then also please drop the conditionalization by arg_verbose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
How "-v" and the log levels interact is a good question. The "-v" option was supposed to be something like tar's "v" switch, i.e. just show some most high-level progress info about what we are processing (i.e. which path we are looking at). I think it would make sense to stick to that, and probably not overload it with anything else. Right now arg_verbose is also used to show the stats at the end and a couple of other things, which I either should be removed, or also be individually selectable (since I figure running casync without path progress info but with stats should be very useful, the opposite probably not so much...) So here's my proposal:
Does that make sense? |
With this commit, one must set casync log level to debug in order to see each downloaded chunks. CASYNC_LOG_LEVEL=debug casync extract ... Signed-off-by: Arnaud Rebillout <[email protected]>
75bb5a4
to
e869cd6
Compare
It all makes sense, I can work on that while I'm at it. I propose to open a new task maybe, like |
task? is that a github concept? by all means |
With this commit, one must set casync log level to debug in order to see
each downloaded chunks (additionally to setting the verbose flag).
Signed-off-by: Arnaud Rebillout [email protected]