Re: [PATCH 1/2 master] Improve logging of ifcfg stuff.

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

 



On 09/08/2010 01:46 PM, Radek Vykydal wrote:
On 09/08/2010 01:34 PM, Ales Kozumplik wrote:

2) if you want ifcfg messages to be correctly filed during remote logging, you need to update scripts/analog too. You can inspire yourself with how we handle "storage" there. Please either do this (the recommended option) or remove the "forwardToSyslog" call.


I will send update of analog in another patch.


Here you are, seems pretty easy:

diff --git a/scripts/analog b/scripts/analog
index 1041372..3406a97 100755
--- a/scripts/analog
+++ b/scripts/analog
@@ -68,6 +68,7 @@ $template path_syslog, "%(directory)s/%(subdirectory)s/syslog
 $template path_anaconda, "%(directory)s/%(subdirectory)s/anaconda.log"
 $template path_program, "%(directory)s/%(subdirectory)s/program.log"
 $template path_storage, "%(directory)s/%(subdirectory)s/storage.log"
+$template path_ifcfg, "%(directory)s/%(subdirectory)s/ifcfg.log"
$template path_sysimage, "%(directory)s/%(subdirectory)s/install.log.syslog"

*.* %(directory)s/debug_all.log;anaconda_debug @@ -80,6 +81,7 @@ authpriv.* ?path_syslog;anaconda_syslo :programname, contains, "anaconda" ?path_anaconda;anaconda_syslog :programname, contains, "program" ?path_program;anaconda_syslog :programname, contains, "storage" ?path_storage;anaconda_syslog +:programname, contains, "ifcfg" ?path_ifcfg;anaconda_syslog :hostname, contains, "sysimage" ?path_sysimage;anaconda_syslog

 # discard those that we logged
@@ -88,6 +90,7 @@ authpriv.* ?path_syslog;anaconda_syslo
 :programname, contains, "anaconda"                   ~
 :programname, contains, "program"                    ~
 :programname, contains, "storage"                    ~
+:programname, contains, "ifcfg"                      ~
 :hostname, contains, "sysimage"                      ~
 kern.*                                               ~
 daemon.*                                             ~

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux