Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   Remove LoggerClass but maintain loglevel= functionality (http://www.linux-archive.org/gentoo-development/304127-remove-loggerclass-but-maintain-loglevel-functionality.html)

Chris Lumens 01-04-2010 03:12 PM

Remove LoggerClass but maintain loglevel= functionality
 
> diff --git a/anaconda b/anaconda
> index 78e5fd1..b87c58a 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -573,7 +573,7 @@ if __name__ == "__main__":
>
> # Set up logging as early as possible.
> import logging
> - from anaconda_log import logger, logLevelMap
> + from anaconda_log import logger, logLevelMap, setHandlersLevel
>
> log = logging.getLogger("anaconda")
> stdoutLog = logging.getLogger("anaconda.stdout")

Would it be possible for you to also move all the logging import and
setup to after setupPythonUpdates is called? Right now you can have an
updated anaconda_log.py but when we switch to having anaconda in
python's site-packages directory, this is no longer going to work.

Otherwise if this is tested, it looks fine to me.

- Chris

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


All times are GMT. The time now is 01:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.