Changeset - 5e7eb3df806e
[Not reviewed]
default
0 2 0
Thomas De Schampheleire - 7 years ago 2018-12-29 22:30:08
thomas.de_schampheleire@nokia.com
install-iis: use logging.config.fileConfig instead of paste.script copy

paste.script.util.logging_config is an old copy of logging.config from
Python 2.5.1 (see [1]). There are no paste-specific details in it.

In other places, we are always using logging.config directly, there is no
reason not to do it in install-iis.


[1] https://bitbucket.org/wilig/pastescript/commits/04d0db6b2f5ab360bdaa5b10511d969a24fde0ec
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/setup.rst
Show inline comments
 
@@ -544,7 +544,7 @@ Example WSGI dispatch script:
 
    site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages")
 

	
 
    ini = '/srv/kallithea/my.ini'
 
    from paste.script.util.logging_config import fileConfig
 
    from logging.config import fileConfig
 
    fileConfig(ini)
 
    from paste.deploy import loadapp
 
    application = loadapp('config:' + ini)
 
@@ -560,7 +560,7 @@ Or using proper virtualenv activation:
 
    os.environ['HOME'] = '/srv/kallithea'
 

	
 
    ini = '/srv/kallithea/kallithea.ini'
 
    from paste.script.util.logging_config import fileConfig
 
    from logging.config import fileConfig
 
    fileConfig(ini)
 
    from paste.deploy import loadapp
 
    application = loadapp('config:' + ini)
kallithea/bin/kallithea_cli_iis.py
Show inline comments
 
@@ -30,7 +30,7 @@ import os
 

	
 
def __ExtensionFactory__():
 
    from paste.deploy import loadapp
 
    from paste.script.util.logging_config import fileConfig
 
    from logging.config import fileConfig
 
    fileConfig('%(inifile)s')
 
    application = loadapp('config:%(inifile)s')
 

	
0 comments (0 inline, 0 general)