All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] In dmeventd, bridge LVM error log output to syslog.
@ 2010-05-06 18:53 Petr Rockai
  2010-05-07  1:18 ` Alasdair G Kergon
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Rockai @ 2010-05-06 18:53 UTC (permalink / raw)
  To: lvm-devel

Hi,

as discussed, this is the first part of dmeventd logging. I am not
touching any options related to debugging, that will come as a separate
patch later. This patch provides the necessary minimum for any useful
diagnostics of dmeventd/lvconvert --repair issues.

(I have tested this and it works for me.)

Yours,
   Petr.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmeventd-logging.diff
Type: text/x-diff
Size: 2088 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20100506/99cc683f/attachment.bin>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] In dmeventd, bridge LVM error log output to syslog.
  2010-05-06 18:53 [PATCH] In dmeventd, bridge LVM error log output to syslog Petr Rockai
@ 2010-05-07  1:18 ` Alasdair G Kergon
  2010-05-11 14:35   ` Petr Rockai
  0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2010-05-07  1:18 UTC (permalink / raw)
  To: lvm-devel

On Thu, May 06, 2010 at 08:53:13PM +0200, Peter Rockai wrote:
> as discussed, this is the first part of dmeventd logging. I am not
> touching any options related to debugging, that will come as a separate
> patch later. This patch provides the necessary minimum for any useful
> diagnostics of dmeventd/lvconvert --repair issues.
 
Sorry, but I don't understand this yet.
What changes are you intending to make to the log messages?

Previously *all* messages got logged, but only as either CRIT or as DEBUG,
so the sysadmin had a choice of seeing all messages (including trival ones)
or only the most critical messages.

The new patch appears to drop some messages instead of logging them!

I'd prefer to see a patch that adds a middle category, taking some of
the DEBUG messages and logging them as ERR or WARN.

Alasdair



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] In dmeventd, bridge LVM error log output to syslog.
  2010-05-07  1:18 ` Alasdair G Kergon
@ 2010-05-11 14:35   ` Petr Rockai
  2010-05-12 15:12     ` Petr Rockai
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Rockai @ 2010-05-11 14:35 UTC (permalink / raw)
  To: lvm-devel

Hi,

Alasdair G Kergon <agk@redhat.com> writes:
> On Thu, May 06, 2010 at 08:53:13PM +0200, Peter Rockai wrote:
>> as discussed, this is the first part of dmeventd logging. I am not
>> touching any options related to debugging, that will come as a separate
>> patch later. This patch provides the necessary minimum for any useful
>> diagnostics of dmeventd/lvconvert --repair issues.
>
> Sorry, but I don't understand this yet.
> What changes are you intending to make to the log messages?
>
> Previously *all* messages got logged, but only as either CRIT or as DEBUG,
> so the sysadmin had a choice of seeing all messages (including trival ones)
> or only the most critical messages.

Now this is interesting...

> The new patch appears to drop some messages instead of logging them!

!

There used to be this:
-               lvm2_log_level(_lvm_handle, LVM2_LOG_SUPPRESS);
-               /* FIXME Temporary: move to dmeventd core */

but that disappeared with this patch:

    Thu Jan 21 23:15:46 CET 2010  agk
      Add libdevmapper-event-lvm2.so to serialise dmeventd plugin liblvm2cmd use.

so it seems that versions of dmeventd since this patch spam syslog with
everything, unconditionally. I wasn't aware of this behaviour
change. Either way, I think what we have now is wrong -- a couple of
dmeventd events produced something like 2 megabytes of logs.

What we had *originally* (before end of January) was to log nothing, now
we log everything as DEBUG. This patch logs things at their right
priority and suppresses -vvvv-style output to syslog, which I think is a
good thing (this will likely bog down some syslog implementations).

> I'd prefer to see a patch that adds a middle category, taking some of
> the DEBUG messages and logging them as ERR or WARN.

I will submit a patch later that changes the commandline options, so we
can optionally enable the DEBUG logs to syslog with a -d-style option to
dmeventd. For users, it doesn't make any sense to be logging at the most
verbose level, to syslog.

Yours,
   Petr.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] In dmeventd, bridge LVM error log output to syslog.
  2010-05-11 14:35   ` Petr Rockai
@ 2010-05-12 15:12     ` Petr Rockai
  2010-05-13 14:54       ` Alasdair G Kergon
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Rockai @ 2010-05-12 15:12 UTC (permalink / raw)
  To: lvm-devel

Petr Rockai <prockai@redhat.com> writes:
>> I'd prefer to see a patch that adds a middle category, taking some of
>> the DEBUG messages and logging them as ERR or WARN.
>
> I will submit a patch later that changes the commandline options, so we
> can optionally enable the DEBUG logs to syslog with a -d-style option to
> dmeventd. For users, it doesn't make any sense to be logging at the most
> verbose level, to syslog.
Since Alasdair said this can't go in without the commandline options,
there's a patch that does both.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmeventd-logging-1.diff
Type: text/x-diff
Size: 4639 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20100512/0241ee3f/attachment.bin>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] In dmeventd, bridge LVM error log output to syslog.
  2010-05-12 15:12     ` Petr Rockai
@ 2010-05-13 14:54       ` Alasdair G Kergon
  0 siblings, 0 replies; 5+ messages in thread
From: Alasdair G Kergon @ 2010-05-13 14:54 UTC (permalink / raw)
  To: lvm-devel

On Wed, May 12, 2010 at 05:12:57PM +0200, Peter Rockai wrote:
> Since Alasdair said this can't go in without the commandline options,
> there's a patch that does both.
 
Sort-of ack, assuming the patch does what I think it's trying to.
(It doesn't apply against upstream - probably depends on part of some
earlier patch.)

Alasdair



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-13 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 18:53 [PATCH] In dmeventd, bridge LVM error log output to syslog Petr Rockai
2010-05-07  1:18 ` Alasdair G Kergon
2010-05-11 14:35   ` Petr Rockai
2010-05-12 15:12     ` Petr Rockai
2010-05-13 14:54       ` Alasdair G Kergon

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.