Commit 97162ec
Tang Chen
Fix output and error log in server.py
This patch fixes 2 problems:
1. The '\n' should be in the end of a message,
not the beginning.
i.e.:
The original code was:
sys.stdout.write(_('\nError deleting server'))
It will make the output look like this:
[root@tangchen /]# openstack server delete aaa bbb
Error deleting server
Error deleting server[root@tangchen /]#
We change it to:
sys.stdout.write(_('Error deleting server\n'))
Then the output will become:
[root@tangchen /]# openstack server delete aaa bbb
Error deleting server
Error deleting server
[root@tangchen /]#
which is much better.
2. Record the error in log for those who didn't.
Change-Id: I38b00c2321014757970183205f95f026e20a80901 parent 9da02d1 commit 97162ec
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
| 649 | + | |
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | 1021 | | |
| |||
1085 | 1087 | | |
1086 | 1088 | | |
1087 | 1089 | | |
1088 | | - | |
| 1090 | + | |
1089 | 1091 | | |
1090 | | - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1091 | 1095 | | |
1092 | 1096 | | |
1093 | 1097 | | |
| |||
1136 | 1140 | | |
1137 | 1141 | | |
1138 | 1142 | | |
1139 | | - | |
| 1143 | + | |
1140 | 1144 | | |
1141 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
1142 | 1148 | | |
1143 | 1149 | | |
1144 | 1150 | | |
| |||
1290 | 1296 | | |
1291 | 1297 | | |
1292 | 1298 | | |
1293 | | - | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1294 | 1302 | | |
1295 | 1303 | | |
1296 | 1304 | | |
| |||
0 commit comments