-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Confusing, if not downright wrong, warning message #23573
Comments
Maybe better suited as a discussion? Though I'd argue that this is a bug in the current implementation because it conveys confusing information. |
Is there a formulation that you think would be better? maybe something like
|
Well, can you tell me what is the current state of the property based on the warning message alone? If you can't then the message needs to be changed to something else, imo. Also, do you think that the message means that property was actually changed or not? |
yes its true but I agree its not clear - thus I asked if there is a formulation that would been better and I gave my attempt. |
/cc @radcortez |
I purposefully didn't detail what I did so that it wouldn't influence how the warning is interpreted in the absence of external information. What I did was changed, while dev mode is running, the property from To me, the proper behavior here would be to not issue any warning at all because there is nothing that requests the value to be Note also that while working on this I experienced a time where the property wasn't actually changed (i.e. the behavior associated with the value being |
I personally think the message clear but I realize than I am not the right person to comment since I have seen the message too many times |
Again, how does it make sense when nothing requests the property to be |
I am referring to the message itself. For me, the message is correct. What triggers it is something different where there might be a bug... (but I haven't been able to reproduce the issue FWIW) |
When a message tells me a property is "now false", when it's actually the opposite, sorry, but I don't find that clear as it conflicts with the rest of the message. And when you add on top of that the fact that nothing is supposed to request the property to be false, then you can see how this message can be quite confusing. I could understand the message if there was indeed something requesting the property to be false at runtime but this isn't the case. |
What happens here is that build time properties are recorded and then matched against changes in the current properties and if differences are found they are reported as a warning (the one you see). Are you suggesting that such a warning should only happen when the property is actually used? |
I'm not sure I understand. In my case, the only thing that changes is the
The property is used, that's not the issue. The warning should only happen if there is actually something that tries to override the value set at build time, which isn't the case here. The warning should also be reworded to be less ambiguous to something similar to what Max suggested (bonus point if we could tell what is requesting the property to be changed). |
If I understood correctly, you change the |
No: I change the value in |
@radcortez Using Quarkus 2.7.3, I get this warning in the log output:
The default value of the property is "tracecontext,baggage" (i.e. build time value here).
So, it seems to me the values are logged the wrong way around - the value is actually not I would have expected a warning message like
|
@radcortez Could you verify the printout of property values in the committed fix is done in the wrong way around? I also think the log message should emphasize that the runtime value actually isn't getting set/applied - see my suggestion above. |
Let me have a look. |
Describe the bug
I run my app in dev mode. I change a build time property in
application.properties
and the application properly restarts but I get the following warning in the console:What is this message trying to tell me? What is the state of my property, i.e. is it
true
or is itfalse
?Expected behavior
A clear message as to what happened.
Actual behavior
The currently ambiguous or wrong message.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: