[Yum] logging and error logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-7phn8eiVPHYlI/I6pxsl
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2002-06-12 at 16:47, Troy Dawson wrote:
> Michael Stenner wrote:
> > On Wed, Jun 12, 2002 at 04:22:09PM -0400, seth vidal wrote:
> >=20
> >>logging will soon be like this:
> >>
> >>yum -d 0-1 =3D=3D nothing, only serious errors that cause an exit
> >>yum -d 2 =3D=3D standard output - just informational messages, question=
s,
> >>etc
> >>yum -d 3+ =3D=3D debug - gratuitous output - increasing as the number
> >>increases
> >>
> >>error logs would always get printed and file (syslog-style) logs would
> >>also always occur.
> >>
> >>the -d # would only affect output and debug logs.
> >=20
> >=20
> > Let me see if I get this.
> >=20
> > 1) -d # has no effect on what's printed to the log file
> > 2) -d # has no effect on the printing of errors (they're always
> >    printed to stdout or stderr)
> > 3) -d # only effects HOW MUCH stuff gets printed to stdout/stderr
> >=20
> > Is that right?  If so, it sounds good to me. =20
> > I take it the default is 2 and -d 0 is for things like cron jobs?
> > Is there a difference between 0 and 1?
> >=20
> > 					-Michael
>=20
> What I would like to see is the cronjob output only occurs if something w=
as=20
> updated or installed.  So what if you did
>=20
> yum -d 0 =3D=3D nothing, only serious errors that cause an exit
> yum -d 1 =3D=3D nothing unless something happens, or serious errors that =
cause an exit
>=20
> Beyond that, I think it looks ok.

You want the cron job to output something like:
updated : pkg pkg pkg
installed: pkg pkg pkg
erased: pkg pkg pkg


?

I had intended to put that in the log file.

It would get ugly having an output to cron if you have 100 systems
updating nightly.

-sv


--=-7phn8eiVPHYlI/I6pxsl
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9B7P11Aj3x2mIbMcRAit/AJ9VEl7Fx4dVvkA7eBAscYpYVD+L1gCeJEeW
hD5xvBAI+Rkgr9RIkP5S+jY=
=0xll
-----END PGP SIGNATURE-----

--=-7phn8eiVPHYlI/I6pxsl--



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux