All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] pygrub: add syslog support to pygrub
Date: Thu, 19 Jul 2012 15:39:23 -0400	[thread overview]
Message-ID: <5008626B.3030402@oracle.com> (raw)
In-Reply-To: <1342724875.18848.70.camel@dagon.hellion.org.uk>

On 07/19/2012 03:07 PM, Ian Campbell wrote:
> On Thu, 2012-07-19 at 19:19 +0100, Zhigang Wang wrote:
>> # HG changeset patch
>> # User Zhigang Wang <zhigang.x.wang@oracle.com>
>> # Date 1342720736 14400
>> # Node ID ec9655b30a5fa5b5abb3e05505f681f9be559613
>> # Parent  43e21ce7f22151524b800a6cf0ac4ba1233b34a7
>> pygrub: add syslog support to pygrub
>>
>> Currently, when pygrub failed, we don't know the reason because xend/xl will
>> not capture the stderr message.
> Actual xl in unstable will log to /var/log/xen/bootloader.<domid>.log
> (or something like that) and print a message on failure directing the
> user to it.
I see. But it seems the design is wrong: you want all logs in stderr.
>
>> This patch will log the error message to syslog.
> I suppose there is no harm in also (optionally?) logging to syslog as
> well, but I think we want to keep the messages to stdout also.
I think we should: logs to syslog, errors to stderr.
>
>> Also in this patch:
>>
>> 1). Fix indentation for some lines.
>> 2). Removed some trailing spaces.
> These two make up the vast bulk of the changes and really obscure the
> actual functional changes.
>
> Please can you do this cleanup in a separate patch.
>
>> 3). Mark 'isconfig' a duplicate option of 'debug' and remove the currently broken code:
>>
>>       if isconfig:
>>           chosencfg = run_grub(file, entry, fs, incfg["args"])
>>
>>     'fs' is not defined yet here, so it will raise an exception.
> This should also be a separate patch.
>
> I think all of this is 4.3 material and will therefore have to wait
> until 4.2 branches. Please can you resend at that point.
>
> Ian.
I can do it on 4.3.

Thanks,

Zhigang

      reply	other threads:[~2012-07-19 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 18:19 [PATCH] pygrub: add syslog support to pygrub Zhigang Wang
2012-07-19 19:07 ` Ian Campbell
2012-07-19 19:39   ` Zhigang Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5008626B.3030402@oracle.com \
    --to=zhigang.x.wang@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.