--log-file LOG_FILE option does not work with designate cli commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-designateclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
while using --log-file option with designate cli we get an empty log file.
Output does not get logged into the specified file.
The bug can be reproduced as follows:
$ designate --log-file output.log domain-create --name vyom1.org. --email <email address hidden>
+------
| Field | Value |
+------
| description | None |
| created_at | 2015-11-
| updated_at | None |
| email | <email address hidden> |
| ttl | 3600 |
| serial | 1446545673 |
| id | 61399d8a-
| name | vyom1.org. |
+------
$ ls -l output.log
-rw-rw-r-- 1 vyom vyom 0 Nov 3 05:14 output.log
The --log-file isn't for output of commands, it's for the client's actual logs.