-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
checkout/add: change warning messages to regular/info if behavior is expected #2979
Comments
I think it's a duplicate of this #2329 ? Also, yet another evidence (as many others) that loggers are not meant to be used as a mechanism to built UI/UX on top - #1930. In this specific case, for example, the priority is already set to INFO. It's just happened that in the "loggers world" INFO includes WARNING and above, not other way around. |
This is a discussion about the mechanism in general. It won't change the verbosity level of these particular messages.
Logging is just not the right term. We should use output and verbosity level instead (like in #2329). Separation is definitely needed if we decide to output logs into a separate space while keeping printing messages to output (where verbosity level still be needed).
Sorry, I'm not following this. Could you please clarify? Where is it set to INFO and why it is a problem in this specific case? My understanding - by default we should print all info messages and above. |
probably I was confused by change it to be "add: remove output modified warning message"?
hmm, may be I didn't understand the intention for the ticket ... Technical details aside, what is the outcome you'd like to get - remove the message completely, remove the WARNING prefix? |
Yes |
Gotcha! Yep, disregard my comments then! (I would probably still change title, this one feels generic, at least specific |
@dmpetrov , @shcheklein , what about removing those messages at all?
I think it was a warning because DVC is "removing" data. echo "foo" > foo
dvc add foo
echo "something else" > foo
dvc checkout
# user will lost "something else" In my opinion, having those messages just clutters the UI. This is related to #2498 . by the way, I'm +1 for preventing the user to |
@MrOutis it is a good point we can definitely consider this. To my mind, we should NOT make Re I don't see a clear connection to prompt-issue #2498. That issue was not about outputs, it was about asking vs termination. |
This misleading warning makes this issue p1 or even p0 :( |
@dmpetrov So say you have |
@efiop you are right. We should probably be silent as Git. Any of these is much better than the current misleading warning message. |
@dmpetrov, how about we keep it on Also, there's not much happening different/unsafe compared to |
EDITED 12/18/19: The message is actually wrong! The files were not removed - they were replaced by a new version. It has to be fixed as well.
Based on my understanding warnings are needed when you need to alert a user. It is not needed for routine operations with expected results. In both of these cases, the priority needs to be reduced to regular/info.
PS: Are there any other warnings like these?
The text was updated successfully, but these errors were encountered: