RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [PATCH]: logging of package install/remove to syslog

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 21 Feb 2008 - 22:48:02 CET
Message-Id: <71BDC421-B172-4B86-8F40-1EF83D3C57B2@mac.com>

On Feb 21, 2008, at 3:44 PM, Per Øyvind Karlsen wrote:

> Here's an improved and more upstream friendly version of syslog  
> patch from
> Mandriva which adds logging of install/remove of packages to syslog.
>
> It will be disabled by default, but can be activated by  
> %_log_to_syslog macro.
>
> Any objections of commiting or ideas of improvement?

Yes.

What needs doing is to add a "append-only" mode to log to file,
and a "use-syslog" flag to accomodate those that wish,
that delivers the results of a headerSprintf() queryformat to a log
file.

Follow the (esentially) logging that already exists to populate /var/ 
cache/hrmib
for use by the net-snmp HR-MIB in rpmdbAdd/rpmdbRemove to see
where the configurable logging needs to be done.

And imho, logging +foo/-bar is largely pointless for anything other than
filling up a disk with rubbish. There's too little useful information  
with
NVRA to be useful for debugging, and rpm already has a more powerful
database with a query mechanism for storing the useful information, and
a more powerful verification mechanism to verify that the data is  
indeed,
reliable.

  A historical, erase-only log might be useful, but that's not what  
your patch
is aiming to do.

73 de Jeff
Received on Thu Feb 21 22:48:18 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.