Commit ca78f5b
Enhance log messages with host name (#4575)
* Enhance log messages with hostName
* Use host.toString() on most of host logs.
* Remove redundant "Host" in logs and enhance logs
* duplicated "for"
* Adopt String.format, and enhance code
* Address reviews enhancing log messages
Update server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
-- server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
-- server/src/main/java/com/cloud/resource/RollingMaintenanceManagerImpl.java
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
* Fix String.format issue and change log message from debug to warn
* Fix checkstyle issue
* Fix string.format log
* Address review: enhance logs
* Enhance log of hosts in maintenance avoid list
* Remove "VM" on logs as vm.toString() already appends VM-<details>
* Add more details of the VM when postStateTransitionEvent
* Address reviewer and enhance VMInstanceVO.toString()
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>1 parent b5d7535 commit ca78f5b
11 files changed
Lines changed: 100 additions & 77 deletions
File tree
- engine
- orchestration/src/main/java/com/cloud
- agent/manager
- vm
- schema/src/main/java/com/cloud
- dc
- vm
- server/src/main/java
- com/cloud
- capacity
- network/element
- resource
- vm
- org/apache/cloudstack
- agent/lb
- outofbandmanagement
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
Lines changed: 21 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4346 | 4346 | | |
4347 | 4347 | | |
4348 | 4348 | | |
4349 | | - | |
| 4349 | + | |
4350 | 4350 | | |
4351 | 4351 | | |
4352 | 4352 | | |
4353 | 4353 | | |
| 4354 | + | |
4354 | 4355 | | |
4355 | | - | |
4356 | | - | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
4357 | 4359 | | |
4358 | 4360 | | |
4359 | | - | |
4360 | | - | |
4361 | | - | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
| 4366 | + | |
| 4367 | + | |
4362 | 4368 | | |
4363 | 4369 | | |
4364 | 4370 | | |
| |||
4475 | 4481 | | |
4476 | 4482 | | |
4477 | 4483 | | |
4478 | | - | |
| 4484 | + | |
4479 | 4485 | | |
4480 | 4486 | | |
4481 | 4487 | | |
4482 | 4488 | | |
4483 | 4489 | | |
4484 | | - | |
| 4490 | + | |
4485 | 4491 | | |
4486 | 4492 | | |
4487 | 4493 | | |
4488 | 4494 | | |
4489 | 4495 | | |
4490 | 4496 | | |
4491 | 4497 | | |
4492 | | - | |
4493 | | - | |
4494 | | - | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
4495 | 4502 | | |
4496 | 4503 | | |
4497 | 4504 | | |
| |||
4841 | 4848 | | |
4842 | 4849 | | |
4843 | 4850 | | |
| 4851 | + | |
| 4852 | + | |
4844 | 4853 | | |
4845 | 4854 | | |
4846 | 4855 | | |
| |||
4862 | 4871 | | |
4863 | 4872 | | |
4864 | 4873 | | |
4865 | | - | |
| 4874 | + | |
4866 | 4875 | | |
4867 | 4876 | | |
4868 | 4877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
931 | 934 | | |
932 | 935 | | |
933 | 936 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | | - | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| |||
0 commit comments