mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +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 &&
|
||||
events & VIR_EVENT_HANDLE_HANGUP) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("End of file from monitor"));
|
||||
_("End of file from agent monitor"));
|
||||
eof = true;
|
||||
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
||||
}
|
||||
|
@ -692,7 +692,7 @@ qemuMonitorIO(int watch, int fd, int events, void *opaque)
|
||||
hangup = true;
|
||||
if (!error) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("End of file from monitor"));
|
||||
_("End of file from qemu monitor"));
|
||||
eof = true;
|
||||
events &= ~VIR_EVENT_HANDLE_HANGUP;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user