7892486 Issue 49844 - lib389: don't set up logging at module scope

12 files Authored by stlaz 5 years ago, Committed by spichugi 5 years ago,
    Issue 49844 - lib389: don't set up logging at module scope
    
    Bug description: lib389 was calling `logging.basicConfig()`
    at several places at module scope level. This was causing
    imports from these modules to add an unwanted handler
    to the root logger of the python's standard logging module.
    
    Fix description: Set up logging only in the scripts that are
    using lib389.
    ALso, remove unused imports in __init__.py
    
    https://pagure.io/389-ds-base/issue/49844
    
    Reviewed by: spichugi, mreynolds (Thanks!)
    
    Signed-off-by: Simon Pichugin <spichugi@redhat.com>
    
        
file modified
+6 -1
file modified
+2 -2
file modified
+2 -2
file modified
+2 -2
file modified
+2 -5
file modified
+0 -2
file modified
+2 -1
file modified
+0 -1
file modified
+0 -1