Moved logging.basicConfig() so using dataset as a library doesn't interfere with the global logger
This commit is contained in:
parent
39edde3a2c
commit
69815e65fc
@ -8,7 +8,6 @@ from dataset.freeze.config import Configuration, Export
|
||||
from dataset.freeze.format import get_serializer
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
@ -104,4 +103,5 @@ def main():
|
||||
log.error(fe)
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
main()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user