-
Notifications
You must be signed in to change notification settings - Fork 31
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
Log details of creaper commands #151
Comments
+100 it would be very useful |
+1 from me for the trace logging. Regarding what you are getting now on INFO level depends on you writing |
I was actually considering lowering the logging of commands from INFO to DEBUG, because it's just noise. Also, all mgmt operations are already logged on DEBUG, see |
How reliable is ModelNodeOperationToCliString.convert(Modelnode operation) ? In fact, personally I prefer CLI Strings :) But I am afraid converting from ModelNode into Cli String will have some pitfalls. |
It is not reliable :-), though it should work just fine in the simple cases (no arrays, no objects, no "bytes"). I'm open to changing it however you wish. |
Here is the idea. Enable TRACE logging of commands, by extending OperationsModelNodeBuilder with logging of op.toJSONString(false).
{ "operation" : "add", "address" : [ { "subsystem" : "elytron" }, { "key-store" : "CreaperTestKeyStore" } ], "name" : "CreaperTestKeyStore", "type" : "JKS", "credential-reference" : {"clear-text" : "password"} }
Sometimes it come useful to see exactly what is going on in server configuration. Also this output could be used to build reproducers. Copy output from log and pass it to
curl --digest -L -D - http://localhost:9990/management -u admin:asdasd --header "Content-Type: application/json" -d '{"operation":"reload","name":"", "address":{"host" : "master"},"json.pretty":1}'
Now I only get:
INFO: Applying command org.wildfly.extras.creaper.commands.elytron.tls.AddKeyStore@7d3d101b
@Ladicek , WDYT?
The text was updated successfully, but these errors were encountered: