[Ovirt-devel] [PATCH node 2/2] * scripts/ovirt-awake: log errors, send them back to host-browser
Darryl L. Pierce
dpierce at redhat.com
Fri Apr 24 16:04:32 UTC 2009
On Thu, Apr 23, 2009 at 05:31:38PM -0700, David Lutterkort wrote:
> ---
> scripts/ovirt-awake | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/ovirt-awake b/scripts/ovirt-awake
> index 87994a5..336c2b1 100644
> --- a/scripts/ovirt-awake
> +++ b/scripts/ovirt-awake
> @@ -42,6 +42,12 @@ function receive-text () {
> read 0<&3
> }
>
> +function error () {
> + errmsg="ERR: (ovirt-awake) $1"
> + send-text "$errmsg"
> + log "$errmsg"
> +}
> +
> start () {
> connect-to-server
>
> @@ -70,10 +76,10 @@ start () {
> fi
> send-text ACK
> else
> - echo "Did not get a mode request."
> + error "Did not get a mode request."
> fi
> else
> - echo "Did not get a proper startup marker."
> + error "Did not get a proper startup marker."
> fi
>
> echo "Disconnecting."
> --
> 1.6.0.6
>
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel
ACK.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090424/a4ac929f/attachment.sig>
More information about the ovirt-devel
mailing list