mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
qemu_agent|monitor: use different log on hangup event
Both qemu monitor and agent print the same log on HUANGUP event, which would be confusing when reading libvirtd log. This patch will give a different log message to them. Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c255bc7185
commit
4c886408c0
@ -633,7 +633,7 @@ qemuAgentIO(int watch, int fd, int events, void *opaque)
|
|||||||
if (!error &&
|
if (!error &&
|
||||||
events & VIR_EVENT_HANDLE_HANGUP) {
|
events & VIR_EVENT_HANDLE_HANGUP) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("End of file from monitor"));
|
_("End of file from agent monitor"));
|
||||||
eof = true;
|
eof = true;
|
||||||
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,7 @@ qemuMonitorIO(int watch, int fd, int events, void *opaque)
|
|||||||
hangup = true;
|
hangup = true;
|
||||||
if (!error) {
|
if (!error) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("End of file from monitor"));
|
_("End of file from qemu monitor"));
|
||||||
eof = true;
|
eof = true;
|
||||||
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user