[Yum] About the log level and information messages

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

 



Hi,

I'm using Yum for few months and i'm quite satisfied by it.

When using it, I found its messages were to verbose and annoying, so i 
change the debuglevel flag into yum.conf to 1.
This was quite well, but i was surprise when I see some messages like this :

[lelfe@syunikiss lelfe]$ sudo yum update
Is this ok [y/N]:

Errrr.... ? What's ok ?
Of course the question concerned the packages that will be 
updated/installed/removed, but they were not displayed, due to the too 
small debug level.

I think these informations are really important and should be always 
displayed. So I made a small patch to correct this. It just change the 
related log level inside clientStuff.py .

I think it may be interesting for yum to check these messages and their 
log level. Each log level must provide more informations than the 
previous one, but they must be ordered by importance level. Information 
concerning what must be installed/removed,... are very useless and i 
don't understand why they're only displayed from the log level 2.
Level 1 could be a good level which displays only the most important 
informations (0 could be keep to a no-message levels or 
only-error-messages level).

That's my small contributions and ideas to Yum.
Keep on doing good job :)

Aur?lien

-------------- next part --------------
--- clientStuff.py	2004-03-25 18:53:44.000000000 +0100
+++ clientStuff.py.new	2004-03-25 18:53:23.000000000 +0100
@@ -560,7 +560,7 @@
             pkgstring = '%s %s:%s-%s.%s' % (name, e, v, r, arch)
         else:
             pkgstring = '%s %s-%s.%s' % (name, v, r, arch)
-        log(2, _('[install: %s]') % pkgstring)
+        log(1, _('[install: %s]') % pkgstring)
         
     for pkg in u_list:
         (name,arch) = pkg
@@ -569,7 +569,7 @@
             pkgstring = '%s %s:%s-%s.%s' % (name, e, v, r, arch)
         else:
             pkgstring = '%s %s-%s.%s' % (name, v, r, arch)
-        log(2, _('[update: %s]') % pkgstring)
+        log(1, _('[update: %s]') % pkgstring)
         
     for pkg in e_list:
         (name,arch) = pkg
@@ -578,7 +578,7 @@
             pkgstring = '%s %s:%s-%s.%s' % (name, e, v, r, arch)
         else:
             pkgstring = '%s %s-%s.%s' % (name, v, r, arch)
-        log(2, _('[erase: %s]') % pkgstring)
+        log(1, _('[erase: %s]') % pkgstring)
         
     if len(ud_list) > 0:
         log(2, _('I will install/upgrade these to satisfy the dependencies:'))
@@ -589,7 +589,7 @@
                 pkgstring = '%s %s:%s-%s.%s' % (name, e, v, r, arch)
             else:
                 pkgstring = '%s %s-%s.%s' % (name, v, r, arch)            
-            log(2, _('[deps: %s]') % pkgstring)
+            log(1, _('[deps: %s]') % pkgstring)
             
     if len(ed_list) > 0:
         log(2, _('I will erase these to satisfy the dependencies:'))
@@ -600,7 +600,7 @@
                 pkgstring = '%s %s:%s-%s.%s' % (name, e, v, r, arch)
             else:
                 pkgstring = '%s %s-%s.%s' % (name, v, r, arch)
-            log(2, _('[deps: %s]') % pkgstring)
+            log(1, _('[deps: %s]') % pkgstring)
 
 def filelogactions(i_list, u_list, e_list, ud_list, ed_list, nevral):
     i_log = _('Installed: ')

[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