FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > EPEL Development

 
 
LinkBack Thread Tools
 
Old 05-20-2010, 03:22 PM
Ales Kozumplik
 
Default logging: remove addLogger()

it's not called from anywhere.
---
anaconda_log.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/anaconda_log.py b/anaconda_log.py
index 27dcf40..2f48630 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -126,12 +126,6 @@ class AnacondaLog:
autoSetLevel(logfileHandler, autoLevel)
addToLogger.addHandler(logfileHandler)

- # Add another logger to the hierarchy. For best results, make sure
- # name falls under anaconda in the tree.
- def addLogger (self, name, minLevel=DEFAULT_TTY_LEVEL):
- newLogger = logging.getLogger(name)
- newLogger.setLevel(minLevel)
-
def forwardToSyslog(self, logger):
"""Forward everything that goes in the logger to the syslog daemon.
"""
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-20-2010, 06:25 PM
"Brian C. Lane"
 
Default logging: remove addLogger()

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/20/2010 08:22 AM, Ales Kozumplik wrote:
> it's not called from anywhere.
> ---
> anaconda_log.py | 6 ------
> 1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/anaconda_log.py b/anaconda_log.py
> index 27dcf40..2f48630 100644
> --- a/anaconda_log.py
> +++ b/anaconda_log.py
> @@ -126,12 +126,6 @@ class AnacondaLog:
> autoSetLevel(logfileHandler, autoLevel)
> addToLogger.addHandler(logfileHandler)
>
> - # Add another logger to the hierarchy. For best results, make sure
> - # name falls under anaconda in the tree.
> - def addLogger (self, name, minLevel=DEFAULT_TTY_LEVEL):
> - newLogger = logging.getLogger(name)
> - newLogger.setLevel(minLevel)
> -
> def forwardToSyslog(self, logger):
> """Forward everything that goes in the logger to the syslog daemon.
> """

Ack.

- --
Brian C. Lane <bcl@redhat.com>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS/V+tRF+jBaO/jp/AQKkJgf/RT33P3PwGd9WfOeJzB/ZnQ07brzQoTOD
IpIrKvYl9hnb1us1CY9l3KtQe7RRBE/3M9kZq8WcGC4zk46iyc+/oRXqrtGAFA/N
M8J6tOasxaK5Zr0rtUHl4dFp/5Ovfp69NMkObweBE1tQDTWDPdGWi6wI4k+KmPW1
P8zWEiXDx1iQ+lTEsePIBMYIWlUGxL5Ez/rzU7SFEcwekyr+NJET5Jbf1bDqlJr/
x6Tl1N4/8xkV2MjMkCqacvcZCYjSQh30pxmZnniTl4qM5OSWFjl2/vWGGIu7R5Tw
UfPboEZZwHrLRkcPtTztgk2hFbtHGwmDPEpyTfzQthGqHEKN2e 3Epw==
=r4fV
-----END PGP SIGNATURE-----

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

Thread Tools




All times are GMT. The time now is 10:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org