public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Replacing einfo with elog
@ 2006-07-06 21:51 Marius Mauch
  2006-07-06 22:10 ` Marius Mauch
  0 siblings, 1 reply; 2+ messages in thread
From: Marius Mauch @ 2006-07-06 21:51 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

For the impatient reader:
Ebuilds should stop using einfo() for important messages and use elog()
instead.

Rationale:
I assume most of you are already aware of the new elog framework in
portage-2.1 for handling ebuild messages (like sending them by
mail/syslog or just storing them for later review).
This works very well, except that currently if you enable einfo logging
the user will be swamped with many status messages ("updating
foo", "removing bar") that might be interesting when you watch the build
output but are rather useless once the build is done.
To avoid this information overflow einfo messages aren't logged in the
default portage config, but that means that right now users will only
see ewarn and eerror messages and miss some einfos that might be
important.
To fix this problem a new function elog() was added in portage-2.1 to
close the gap between einfo and ewarn. THe reason this wasn't advertised
until now is that it couldn't be used in the tree as the function didn't
exist for people still on portage-2.0. A few minutes ago I committed the
attached patch to base/profile.bashrc so this is no longer an issue
(for 2.0 users elog is merely an alias to einfo). So from now on please
use elog() for any messages the user should read and use einfo() only
for status/progress messages that have no use once the build is
completed.

I'll get the relevant docs updated in the next days.

Marius

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-dev] Replacing einfo with elog
  2006-07-06 21:51 [gentoo-dev] Replacing einfo with elog Marius Mauch
@ 2006-07-06 22:10 ` Marius Mauch
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Mauch @ 2006-07-06 22:10 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

On Thu, 6 Jul 2006 23:51:09 +0200
Marius Mauch <genone@gentoo.org> wrote:

> A few minutes ago I committed the attached patch to
> base/profile.bashrc so this is no longer an issue (for 2.0 users elog
> is merely an alias to einfo).

*sigh*, gotta get rid of this attachment-eating gremlin someday.
Anyway, patch is available at
dev.gentoo.org/~genone/temp/elog-compat-hack.diff (not that it is
actually important).

Marius

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-07-06 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 21:51 [gentoo-dev] Replacing einfo with elog Marius Mauch
2006-07-06 22:10 ` Marius Mauch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox