SadiJr commented on pull request #5353:
URL: https://github.com/apache/cloudstack/pull/5353#issuecomment-907171029
@sureshanaparti, @nvazquez and @DaanHoogland. Thanks to link the issue. I am
working to improve the logs, some messages, like the cmd Command, are not being
correctly written using _gson.toJson(), like the attached example. If you guys
have any ideas of what it might be or any tips, I would really appreciate it.
Also, some catches were overwriting the original error, which is not ideal.
```
s_logger.debug(String.format("Executing resource command %s: [%s].",
cmd.getClass().getSimpleName(), _gson.toJson(cmd)));
Results in:
2021-08-27 12:08:14,343 DEBUG [c.c.h.v.r.VmwareResource]
(DirectAgent-331:ctx-922ca771) (logid:3d0a43e8) Executing resource command
GetVolumeStatsCommand: [].
But:
s_logger.debug(String.format("Collecting volumes stats for volumes [%s].",
cmd.getVolumeUuids()));
Results in:
2021-08-27 12:08:14,368 DEBUG [c.c.h.v.r.VmwareResource]
(DirectAgent-331:ctx-922ca771 acs-esxi-02, cmd: GetVolumeStatsCommand)
(logid:3d0a43e8) Collecting volumes stats for volumes
[[{"diskDeviceBusName":"scsi0:0","diskChain":["[DATASTORE-1]
teste/teste-backup_1.vmdk"]},
{"diskDeviceBusName":"scsi0:0","diskChain":["[DATASTORE-1]
imported-vm-teste/imported-vm-teste.vmdk"]},
```
I will try to fix all problem this week, and I hope to fix the CI errors to.
I appreciate any suggestions in advance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]