[libvirt] logging: Libvirtd could not create its own logfile, when the path /var/log/libvirt is not exist.

weifuqiang weifuqiang at huawei.com
Thu Jul 28 06:40:33 UTC 2016


Hi all:
Libvirtd could not create its own logfile, such as /var/log/libvirt/libvirtd.log, when the path /var/log/libvirt is not exist.
It may be a problem,I think,so try to make patch when open file failed in virLogAddOutputToFile.
or any better idea?


------------
Libvirtd just creates its logfile, such as /var/log/libvirt/libvirtd.log, DURING INSTALLATION. If the logfile(we mean its path here,that's /var/log/libvirt/) is deleted during its runtime, even if we restart libvirtd, such file would not be generated automatically, thus, the logs are all missing after then, it becomes impossible to debug    problems after then as well. So, we try to mkdir the deleted path after restarting libvirtd.

Or, any better idea?


  Thanks in advance.



Wei Fuqiang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160728/de1fc7bd/attachment-0001.htm>


More information about the libvir-list mailing list